Package org.apache.qpid.proton.amqp.messaging

Examples of org.apache.qpid.proton.amqp.messaging.Target


        }

        public Sender create(Session session)
        {
            Sender sender = session.sender(_path);
            Target target = new Target();
            target.setAddress(_path);
            sender.setTarget(target);
            // the C implemenation does this:
            Source source = new Source();
            source.setAddress(_path);
            sender.setSource(source);
View Full Code Here


            Receiver receiver = session.receiver(_path);
            Source source = new Source();
            source.setAddress(_path);
            receiver.setSource(source);
            // the C implemenation does this:
            Target target = new Target();
            target.setAddress(_path);
            receiver.setTarget(target);
            if (getIncomingWindow() > 0)
            {
                // use explicit settlement via dispositions (not pre-settled)
                receiver.setSenderSettleMode(SenderSettleMode.UNSETTLED)// desired
View Full Code Here

          @Override
          public void onSuccess(Void value) {
            _logger.fine("on connect Success! in container " + container);
            final AmqpSession session = conn.createSession();
            Target rqtarget = new Target();
            rqtarget.setAddress("rq-tgt");
            final AmqpSender sender = session.createSender(rqtarget, QoS.AT_LEAST_ONCE, "request-yyy");
            Source rqsource = new Source();
            rqsource.setAddress("rs-src");
            sender.getEndpoint().setSource(rqsource);
            Source rssource = new Source();
            rssource.setAddress("rs-src");
            final AmqpReceiver receiver = session.createReceiver(rssource , QoS.AT_LEAST_ONCE, 10, "response-yyy");
            Target rstarget = new Target();
            final String address = "rs-tgt";
            rstarget.setAddress(address);
            receiver.getEndpoint().setTarget(rstarget);
            sender.onRemoteClose(new Callback<ErrorCondition>() {

              @Override
              public void onSuccess(ErrorCondition value) {
View Full Code Here

        }

        public Sender create(Session session)
        {
            Sender sender = session.sender(_path);
            Target target = new Target();
            target.setAddress(_path);
            sender.setTarget(target);
            return sender;
        }
View Full Code Here

        LOGGER.fine(bold("======== About to create sender"));

        _client.source = new Source();
        _client.source.setAddress(null);

        _client.target = new Target();
        _client.target.setAddress(_targetAddress);

        _client.sender = _client.session.sender("link1");
        _client.sender.setTarget(_client.target);
        _client.sender.setSource(_client.source);
View Full Code Here

                receiver.setContext(coordinatorContext);
                receiver.flow(prefetch);
                receiver.open();
                pumpProtonToSocket();
            } else {
                Target target = (Target) remoteTarget;
                ProducerId producerId = new ProducerId(sessionContext.sessionId, sessionContext.nextProducerId++);
                ActiveMQDestination dest;
                if (target.getDynamic()) {
                    dest = createTempQueue();
                    Target actualTarget = new Target();
                    actualTarget.setAddress(dest.getQualifiedName());
                    actualTarget.setDynamic(true);
                    receiver.setTarget(actualTarget);
                } else {
                    dest = createDestination(remoteTarget);
                }
View Full Code Here

                receiver.setContext(coordinatorContext);
                receiver.flow(prefetch);
                receiver.open();
                pumpProtonToSocket();
            } else {
                Target target = (Target) remoteTarget;
                ProducerId producerId = new ProducerId(sessionContext.sessionId, sessionContext.nextProducerId++);
                ActiveMQDestination dest;
                if( target.getDynamic() ) {
                    dest = createTempQueue();
                    Target actualTarget = new Target();
                    actualTarget.setAddress(dest.getQualifiedName());
                    actualTarget.setDynamic(true);
                    receiver.setTarget(actualTarget);
                } else {
                    dest = createDestination(remoteTarget);
                }
View Full Code Here

                receiver.setContext(coordinatorContext);
                receiver.flow(prefetch);
                receiver.open();
                pumpProtonToSocket();
            } else {
                Target target = (Target) remoteTarget;
                ProducerId producerId = new ProducerId(sessionContext.sessionId, sessionContext.nextProducerId++);
                ActiveMQDestination dest;
                if (target.getDynamic()) {
                    dest = createTempQueue();
                    Target actualTarget = new Target();
                    actualTarget.setAddress(dest.getQualifiedName());
                    actualTarget.setDynamic(true);
                    receiver.setTarget(actualTarget);
                } else {
                    dest = createDestination(remoteTarget);
                }
View Full Code Here

        }

        public Sender create(Session session)
        {
            Sender sender = session.sender(_path);
            Target target = new Target();
            target.setAddress(_path);
            sender.setTarget(target);
            return sender;
        }
View Full Code Here

          @Override
          public void onSuccess(Void value) {
            _logger.fine("on connect Success! in container " + container);
            final AmqpSession session = conn.createSession();
            Target rqtarget = new Target();
            rqtarget.setAddress("rq-tgt");
            final AmqpSender sender = session.createSender(rqtarget, QoS.AT_LEAST_ONCE, "request-yyy");
            Source rqsource = new Source();
            rqsource.setAddress("rs-src");
            sender.getEndpoint().setSource(rqsource);
            Source rssource = new Source();
            rssource.setAddress("rs-src");
            final AmqpReceiver receiver = session.createReceiver(rssource , QoS.AT_LEAST_ONCE, 10, "response-yyy");
            Target rstarget = new Target();
            final String address = "rs-tgt";
            rstarget.setAddress(address);
            receiver.getEndpoint().setTarget(rstarget);
            sender.onRemoteClose(new Callback<ErrorCondition>() {

              @Override
              public void onSuccess(ErrorCondition value) {
View Full Code Here

TOP

Related Classes of org.apache.qpid.proton.amqp.messaging.Target

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.