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

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


        {
            return new Rejected();
        }
        else if(BigInteger.valueOf(PN_MODIFIED).equals(disposition))
        {
            return new Modified();
        }
        else if(BigInteger.valueOf(PN_RECEIVED).equals(disposition))
        {
            return new Received();
        }
View Full Code Here


                settle(delivery, -1);
            } else if( state instanceof Released) {
                // re-deliver && don't increment the counter.
                settle(delivery, -1);
            } else if( state instanceof Modified) {
                Modified modified = (Modified) state;
                if ( modified.getDeliveryFailed() ) {
                  // increment delivery counter..
                  md.setRedeliveryCounter(md.getRedeliveryCounter() + 1);
                }
                byte ackType = -1;
                Boolean undeliverableHere = modified.getUndeliverableHere();
                if( undeliverableHere !=null && undeliverableHere ) {
                    // receiver does not want the message..
                    // perhaps we should DLQ it?
                    ackType = MessageAck.POSION_ACK_TYPE;
                }
View Full Code Here

        {
            return new Rejected();
        }
        else if(BigInteger.valueOf(PN_MODIFIED).equals(disposition))
        {
            return new Modified();
        }
        else if(BigInteger.valueOf(PN_RECEIVED).equals(disposition))
        {
            return new Received();
        }
View Full Code Here

                } else if (state instanceof Released) {
                    LOG.trace("onDelivery: Released state = {}", state);
                    // re-deliver && don't increment the counter.
                    settle(delivery, -1);
                } else if (state instanceof Modified) {
                    Modified modified = (Modified) state;
                    if (modified.getDeliveryFailed()) {
                        // increment delivery counter..
                        md.setRedeliveryCounter(md.getRedeliveryCounter() + 1);
                    }
                    LOG.trace("onDelivery: Modified state = {}, delivery count now {}", state, md.getRedeliveryCounter());
                    byte ackType = -1;
                    Boolean undeliverableHere = modified.getUndeliverableHere();
                    if (undeliverableHere != null && undeliverableHere) {
                        // receiver does not want the message..
                        // perhaps we should DLQ it?
                        ackType = MessageAck.POSION_ACK_TYPE;
                    }
View Full Code Here

                } else if (state instanceof Released) {
                    LOG.trace("onDelivery: Released state = {}", state);
                    // re-deliver && don't increment the counter.
                    settle(delivery, -1);
                } else if (state instanceof Modified) {
                    Modified modified = (Modified) state;
                    if (modified.getDeliveryFailed()) {
                        // increment delivery counter..
                        md.setRedeliveryCounter(md.getRedeliveryCounter() + 1);
                    }
                    LOG.trace("onDelivery: Modified state = {}, delivery count now {}", state, md.getRedeliveryCounter());
                    byte ackType = -1;
                    Boolean undeliverableHere = modified.getUndeliverableHere();
                    if (undeliverableHere != null && undeliverableHere) {
                        // receiver does not want the message..
                        // perhaps we should DLQ it?
                        ackType = MessageAck.POSION_ACK_TYPE;
                    }
View Full Code Here

        {
            return new Rejected();
        }
        else if(pn_disposition_t.PN_MODIFIED.equals(disposition))
        {
            return new Modified();
        }
        else if(pn_disposition_t.PN_MODIFIED.equals(disposition))
        {
            return new Modified();
        }
        else if(pn_disposition_t.PN_RELEASED.equals(disposition))
        {
            return new Released();
        }
View Full Code Here

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

        Modified o = new Modified();


        switch(3 - l.size())
        {

            case 0:
                o.setMessageAnnotations( (Map) l.get( 2 ) );
            case 1:
                o.setUndeliverableHere( (Boolean) l.get( 1 ) );
            case 2:
                o.setDeliveryFailed( (Boolean) l.get( 0 ) );
        }


        return o;
    }
View Full Code Here

            } else if( state instanceof Released) {
                // re-deliver && don't increment the counter.
                md.delivery = null;
                outbound.addLast(md);
            } else if( state instanceof Modified) {
                Modified modified = (Modified) state;
                if ( modified.getDeliveryFailed() ) {
                  // increment delivery counter..
                  md.incrementDeliveryCount();
                }
            }
            delivery.settle();
View Full Code Here

            } else if( state instanceof Released) {
                // re-deliver && don't increment the counter.
                md.delivery = null;
                outbound.addLast(md);
            } else if( state instanceof Modified) {
                Modified modified = (Modified) state;
                if ( modified.getDeliveryFailed() ) {
                  // increment delivery counter..
                  md.incrementDeliveryCount();
                }
            }
            delivery.settle();
View Full Code Here

                } else if (state instanceof Released) {
                    LOG.trace("onDelivery: Released state = {}", state);
                    // re-deliver && don't increment the counter.
                    settle(delivery, -1);
                } else if (state instanceof Modified) {
                    Modified modified = (Modified) state;
                    if (modified.getDeliveryFailed()) {
                        // increment delivery counter..
                        md.setRedeliveryCounter(md.getRedeliveryCounter() + 1);
                    }
                    LOG.trace("onDelivery: Modified state = {}, delivery count now {}", state, md.getRedeliveryCounter());
                    byte ackType = -1;
                    Boolean undeliverableHere = modified.getUndeliverableHere();
                    if (undeliverableHere != null && undeliverableHere) {
                        // receiver does not want the message..
                        // perhaps we should DLQ it?
                        ackType = MessageAck.POSION_ACK_TYPE;
                    }
View Full Code Here

TOP

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

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.