Examples of incrementDeliveryCount()


Examples of org.activemq.message.ActiveMQMessage.incrementDeliveryCount()

                                }
                                catch (InterruptedException e) {
                                }
                            }
                            //incremenent delivery count
                            msg.incrementDeliveryCount();
                        }
                        if (!pointer.getContainer().isDeadLetterQueue()
                                && (msg.isExpired() || msg.getDeliveryCount() >= redeliveryPolicy
                                        .getMaximumRetryCount())) {
                            if (msg.isExpired()) {
View Full Code Here

Examples of org.activemq.message.ActiveMQMessage.incrementDeliveryCount()

                        for (Iterator iter = ackList.iterator(); iter.hasNext();) {
                           
                            DurableMessagePointer messagePointer = (DurableMessagePointer) iter.next();
                            ActiveMQMessage message = messagePointer.getMessage();
                            message.setJMSRedelivered(true);
                            if (message.incrementDeliveryCount() >= redeliveryPolicy.getMaximumRetryCount()) {
                                if (log.isDebugEnabled()){
                                    log.debug("Message: " + message + " has exceeded its retry count");
                                }
                                // TODO: see if we can use the deadLetterPolicy of the container that dispatched the message.
                                deadLetterPolicy.sendToDeadLetter(message);
View Full Code Here

Examples of org.apache.qpid.server.message.MessageInstance.incrementDeliveryCount()

                    {
                        //this requeue represents a message rejected because of a recover/rollback that we
                        //are not ready to DLQ. We rely on the reject command to resend from the unacked map
                        //and therefore need to increment the delivery counter so we cancel out the effect
                        //of the AMQChannel#resend() decrement.
                        message.incrementDeliveryCount();
                    }
                }
                else
                {
                    channel.requeue(deliveryTag);
View Full Code Here

Examples of org.apache.qpid.server.message.MessageInstance.incrementDeliveryCount()

                        {
                            //this requeue represents a message rejected because of a recover/rollback that we
                            //are not ready to DLQ. We rely on the reject command to resend from the unacked map
                            //and therefore need to increment the delivery counter so we cancel out the effect
                            //of the AMQChannel#resend() decrement.
                            message.incrementDeliveryCount();
                        }
                    }
                    else
                    {
                        requeue(deliveryTag);
View Full Code Here

Examples of org.apache.qpid.server.queue.QueueEntry.incrementDeliveryCount()

                     {
                         //this requeue represents a message rejected because of a recover/rollback that we
                         //are not ready to DLQ. We rely on the reject command to resend from the unacked map
                         //and therefore need to increment the delivery counter so we cancel out the effect
                         //of the AMQChannel#resend() decrement.
                         message.incrementDeliveryCount();
                     }
                 }
                 else
                 {
                     channel.deadLetter(body.getDeliveryTag());
View Full Code Here

Examples of org.apache.qpid.server.queue.QueueEntry.incrementDeliveryCount()

                     {
                         //this requeue represents a message rejected because of a recover/rollback that we
                         //are not ready to DLQ. We rely on the reject command to resend from the unacked map
                         //and therefore need to increment the delivery counter so we cancel out the effect
                         //of the AMQChannel#resend() decrement.
                         message.incrementDeliveryCount();
                     }
                 }
                 else
                 {
                     channel.deadLetter(body.getDeliveryTag());
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQMessage.incrementDeliveryCount()

        if (!replay.isEmpty()) {
            for (ListIterator i = replay.listIterator(replay.size());i.hasPrevious();) {
                ActiveMQMessage msg = (ActiveMQMessage) i.previous();
                if (!onlyDeliverTransientConsumed || msg.isTransientConsumed()) {
                    msg.setJMSRedelivered(true);
                    msg.incrementDeliveryCount();
                    messageExecutor.executeFirst(msg);
                }
            }
        }
        replay.clear();
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQMessage.incrementDeliveryCount()

        if (!replay.isEmpty()) {
            for (ListIterator i = replay.listIterator(replay.size());i.hasPrevious();) {
                ActiveMQMessage msg = (ActiveMQMessage) i.previous();
                if (!onlyDeliverTransientConsumed || msg.isTransientConsumed()) {
                    msg.setJMSRedelivered(true);
                    msg.incrementDeliveryCount();
                    messageExecutor.executeFirst(msg);
                }
            }
        }
        replay.clear();
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQMessage.incrementDeliveryCount()

        TransientQueueSubscription ts = (TransientQueueSubscription) subscriptions.get(ack.getConsumerId());
        if (ts != null) {
            ActiveMQMessage message = ts.acknowledgeMessage(ack.getMessageID());
            if (message != null && (!ack.isMessageRead() || ack.isExpired())) {
                message.setJMSRedelivered(true);
                if (message.incrementDeliveryCount() >= redeliveryPolicy.getMaximumRetryCount()) {
                    if (log.isDebugEnabled()){
                        log.debug("Message: " + message + " has exceeded its retry count");
                    }
                    deadLetterPolicy.sendToDeadLetter(message);
                }
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQMessage.incrementDeliveryCount()

     */
    private void doAcknowledgeMessage(TransientQueueSubscription ts, MessageAck ack) throws JMSException {
        ActiveMQMessage message = ts.acknowledgeMessage(ack.getMessageID());
        if (message != null && (!ack.isMessageRead() || ack.isExpired())) {
            message.setJMSRedelivered(true);
            if (message.incrementDeliveryCount() >= redeliveryPolicy.getMaximumRetryCount()) {
                if (log.isDebugEnabled()){
                    log.debug("Message: " + message + " has exceeded its retry count");
                }
                deadLetterPolicy.sendToDeadLetter(message);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.