Package org.apache.qpid.proton.amqp

Examples of org.apache.qpid.proton.amqp.UnsignedInteger


                    SenderImpl sender = (SenderImpl) endpoint;
                    if(sender.getDrain() && sender.clearDrained())
                    {
                        TransportSender transportLink = sender.getTransportLink();
                        TransportSession transportSession = sender.getSession().getTransportSession();
                        UnsignedInteger credits = transportLink.getLinkCredit();
                        transportLink.setLinkCredit(UnsignedInteger.valueOf(0));
                        transportLink.setDeliveryCount(transportLink.getDeliveryCount().add(credits));
                        transportLink.setLinkCredit(UnsignedInteger.ZERO);

                        Flow flow = new Flow();
View Full Code Here


                    sender.decrementQueued();


                    TransportLink transportLink = sender.getTransportLink();

                    UnsignedInteger deliveryId = transportLink.getDeliveryCount();
                    TransportDelivery transportDelivery = new TransportDelivery(deliveryId, delivery, transportLink);
                    delivery.setTransportDelivery(transportDelivery);

                    final Transfer transfer = new Transfer();
                    transfer.setDeliveryId(deliveryId);
View Full Code Here

                            && !transportLink.isLocalHandleSet()) || link.getRemoteState() == EndpointState.UNINITIALIZED)
                        {

                            SessionImpl session = link.getSession();
                            TransportSession transportSession = getTransportState(session);
                            UnsignedInteger localHandle = transportSession.allocateLocalHandle(transportLink);

                            if(link.getRemoteState() == EndpointState.UNINITIALIZED)
                            {
                                transportSession.addHalfOpenLink(transportLink);
                            }
View Full Code Here

    {
        for(int i = 0; i < _localHandleMap.length; i++)
        {
            if(_localHandleMap[i] == null)
            {
                UnsignedInteger rc = UnsignedInteger.valueOf(i);
                _localHandleMap[i] = transportLink;
                transportLink.setLocalHandle(rc);
                return rc;
            }
        }
View Full Code Here

        _remoteNextIncomingId = remoteNextIncomingId;
    }

    void handleDisposition(Disposition disposition)
    {
        UnsignedInteger id = disposition.getFirst();
        UnsignedInteger last = disposition.getLast() == null ? id : disposition.getLast();
        final Map<UnsignedInteger, DeliveryImpl> unsettledDeliveries =
                disposition.getRole() == Role.RECEIVER ? _unsettledOutgoingDeliveriesById
                        : _unsettledIncomingDeliveriesById;

        while(id.compareTo(last)<=0)
View Full Code Here

                           || link.getQueued() == 0
                           || transportLink.detachReceived()
                           || transportSession.endReceived()
                           || _closeReceived)
                        {
                            UnsignedInteger localHandle = transportLink.getLocalHandle();
                            transportLink.clearLocalHandle();
                            transportSession.freeLocalHandle(localHandle);


                            Detach detach = new Detach();
View Full Code Here

                o.setDynamicNodeProperties( (Map) l.get( 5 ) );
            case 2:
                Boolean dynamic = (Boolean) l.get(4);
                o.setDynamic(dynamic == null ? false : dynamic);
            case 3:
                UnsignedInteger timeout = (UnsignedInteger) l.get(3);
                o.setTimeout(timeout == null ? UnsignedInteger.ZERO : timeout);
            case 4:
                Symbol expiryPolicy = (Symbol) l.get(2);
                o.setExpiryPolicy(expiryPolicy == null ? TerminusExpiryPolicy.SESSION_END : TerminusExpiryPolicy.valueOf(expiryPolicy));
            case 5:
                UnsignedInteger durable = (UnsignedInteger) l.get(1);
                o.setDurable(durable == null ? TerminusDurability.NONE : TerminusDurability.get(durable));
            case 6:
                o.setAddress( (String) l.get( 0 ) );
        }
View Full Code Here

                else
                {
                    o.setOfferedCapabilities( (Symbol) val2 );
                }
            case 3:
                UnsignedInteger handleMax = (UnsignedInteger) l.get(4);
                o.setHandleMax(handleMax == null ? UnsignedInteger.MAX_VALUE : handleMax);
            case 4:
                o.setOutgoingWindow( (UnsignedInteger) l.get( 3 ) );
            case 5:
                o.setIncomingWindow( (UnsignedInteger) l.get( 2 ) );
View Full Code Here

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

    {
        for(int i = 0; i < _localHandleMap.length; i++)
        {
            if(_localHandleMap[i] == null)
            {
                UnsignedInteger rc = UnsignedInteger.valueOf(i);
                _localHandleMap[i] = transportLink;
                transportLink.setLocalHandle(rc);
                return rc;
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.qpid.proton.amqp.UnsignedInteger

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.