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

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


                    state = (DeliveryState) txState.getOutcome();

                    if (state instanceof Accepted) {
                        if (!delivery.remotelySettled()) {
                            delivery.disposition(new Accepted());
                        }
                        settle(delivery, MessageAck.DELIVERED_ACK_TYPE);
                    }
                }
            } else {
                if (state instanceof Accepted) {
                    LOG.trace("onDelivery: accepted state = {}", state);

                    if (!delivery.remotelySettled()) {
                        delivery.disposition(new Accepted());
                    }
                    settle(delivery, MessageAck.INDIVIDUAL_ACK_TYPE);
                } else if (state instanceof Rejected) {
                    // re-deliver /w incremented delivery counter.
                    md.setRedeliveryCounter(md.getRedeliveryCounter() + 1);
View Full Code Here


                    state = (DeliveryState) txState.getOutcome();

                    if (state instanceof Accepted) {
                        if (!delivery.remotelySettled()) {
                            delivery.disposition(new Accepted());
                        }
                        settle(delivery, MessageAck.DELIVERED_ACK_TYPE);
                    }
                }
            } else {
                if (state instanceof Accepted) {
                    LOG.trace("onDelivery: accepted state = {}", state);

                    if (!delivery.remotelySettled()) {
                        delivery.disposition(new Accepted());
                    }
                    settle(delivery, MessageAck.INDIVIDUAL_ACK_TYPE);
                } else if (state instanceof Rejected) {
                    // re-deliver /w incremented delivery counter.
                    md.setRedeliveryCounter(md.getRedeliveryCounter() + 1);
View Full Code Here

            }

            @Override
            public void settle() {
                if( !delivery.isSettled() ) {
                    delivery.disposition(new Accepted());
                    delivery.settle();
                }
                drain();
            }
        };
View Full Code Here

            }

            final DeliveryState state = delivery.getRemoteState();
            if( state==null || state instanceof Accepted) {
                if( !delivery.remotelySettled() ) {
                    delivery.disposition(new Accepted());
                }
            } else if( state instanceof Rejected) {
                // re-deliver /w incremented delivery counter.
                md.delivery = null;
                md.incrementDeliveryCount();
View Full Code Here

            }

            @Override
            public void settle() {
                if( !delivery.isSettled() ) {
                    delivery.disposition(new Accepted());
                    delivery.settle();
                }
                drain();
            }
        };
View Full Code Here

            }

            final DeliveryState state = delivery.getRemoteState();
            if( state==null || state instanceof Accepted) {
                if( !delivery.remotelySettled() ) {
                    delivery.disposition(new Accepted());
                }
            } else if( state instanceof Rejected) {
                // re-deliver /w incremented delivery counter.
                md.delivery = null;
                md.incrementDeliveryCount();
View Full Code Here

                if (txState.getOutcome() instanceof DeliveryState) {
                    LOG.trace("onDelivery: TX delivery state = {}", state);
                    state = (DeliveryState) txState.getOutcome();
                    if (state instanceof Accepted) {
                        if (!delivery.remotelySettled()) {
                            delivery.disposition(new Accepted());
                        }
                        settle(delivery, MessageAck.DELIVERED_ACK_TYPE);
                    }
                }
            } else {
                if (state instanceof Accepted) {
                    LOG.trace("onDelivery: accepted state = {}", state);
                    if (!delivery.remotelySettled()) {
                        delivery.disposition(new Accepted());
                    }
                    settle(delivery, MessageAck.INDIVIDUAL_ACK_TYPE);
                } else if (state instanceof Rejected) {
                    // re-deliver /w incremented delivery counter.
                    md.setRedeliveryCounter(md.getRedeliveryCounter() + 1);
View Full Code Here

                if (txState.getOutcome() instanceof DeliveryState) {
                    LOG.trace("onDelivery: TX delivery state = {}", state);
                    state = (DeliveryState) txState.getOutcome();
                    if (state instanceof Accepted) {
                        if (!delivery.remotelySettled()) {
                            delivery.disposition(new Accepted());
                        }
                        settle(delivery, MessageAck.DELIVERED_ACK_TYPE);
                    }
                }
            } else {
                if (state instanceof Accepted) {
                    LOG.trace("onDelivery: accepted state = {}", state);
                    if (!delivery.remotelySettled()) {
                        delivery.disposition(new Accepted());
                    }
                    settle(delivery, MessageAck.INDIVIDUAL_ACK_TYPE);
                } else if (state instanceof Rejected) {
                    // re-deliver /w incremented delivery counter.
                    md.setRedeliveryCounter(md.getRedeliveryCounter() + 1);
View Full Code Here

TOP

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

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.