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

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


            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);
            if (getOutgoingWindow() > 0)
            {
                // use explicit settlement via dispositions (not pre-settled)
                sender.setSenderSettleMode(SenderSettleMode.UNSETTLED);
View Full Code Here


        }

        public Receiver create(Session session)
        {
            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);
View Full Code Here

            _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);
View Full Code Here

        }

        public Receiver create(Session session)
        {
            Receiver receiver = session.receiver(_path);
            Source source = new Source();
            source.setAddress(_path);
            receiver.setSource(source);
            return receiver;
        }
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);
View Full Code Here

        }

        public Receiver create(Session session)
        {
            Receiver receiver = session.receiver(_path);
            Source source = new Source();
            source.setAddress(_path);
            receiver.setSource(source);
            return receiver;
        }
View Full Code Here

            _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);
View Full Code Here

    public Source newInstance(Object described)
    {
        List l = (List) described;

        Source o = new Source();


        switch(11 - l.size())
        {

            case 0:
                Object val0 = l.get( 10 );
                if( val0 == null || val0.getClass().isArray() )
                {
                    o.setCapabilities( (Symbol[]) val0 );
                }
                else
                {
                    o.setCapabilities( (Symbol) val0 );
                }
            case 1:
                Object val1 = l.get( 9 );
                if( val1 == null || val1.getClass().isArray() )
                {
                    o.setOutcomes( (Symbol[]) val1 );
                }
                else
                {
                    o.setOutcomes( (Symbol) val1 );
                }
            case 2:
                o.setDefaultOutcome( (Outcome) l.get( 8 ) );
            case 3:
                o.setFilter( (Map) l.get( 7 ) );
            case 4:
                o.setDistributionMode( (Symbol) l.get( 6 ) );
            case 5:
                o.setDynamicNodeProperties( (Map) l.get( 5 ) );
            case 6:
                Boolean dynamic = (Boolean) l.get(4);
                o.setDynamic(dynamic == null ? false : dynamic);
            case 7:
                UnsignedInteger timeout = (UnsignedInteger) l.get(3);
                o.setTimeout(timeout == null ? UnsignedInteger.ZERO : timeout);
            case 8:
                Symbol expiryPolicy = (Symbol) l.get(2);
                o.setExpiryPolicy(expiryPolicy == null ? TerminusExpiryPolicy.SESSION_END : TerminusExpiryPolicy.valueOf(expiryPolicy));
            case 9:
                UnsignedInteger durable = (UnsignedInteger) l.get(1);
                o.setDurable(durable == null ? TerminusDurability.NONE : TerminusDurability.get(durable));
            case 10:
                o.setAddress( (String) l.get( 0 ) );
        }


        return o;
    }
View Full Code Here

            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);
            if (getOutgoingWindow() > 0)
            {
                // use explicit settlement via dispositions (not pre-settled)
                sender.setSenderSettleMode(SenderSettleMode.UNSETTLED);
View Full Code Here

        }

        public Receiver create(Session session)
        {
            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);
View Full Code Here

TOP

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

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.