Examples of requeue()


Examples of org.apache.qpid.server.AMQChannel.requeue()

        assertEquals(new Long(0), new Long(_queueMBean.getQueueDepth()));

        // Kill the subscriber again. Now those messages should get requeued again. Check if the queue depth
        // value is correct.
        _queue.unregisterProtocolSession(protocolSession, channel.getChannelId(), new AMQShortString("consumer_tag"));
        channel.requeue();

        assertEquals(new Long(totalSize), new Long(_queueMBean.getQueueDepth()));
        protocolSession.closeSession();

        // Check the clear queue
View Full Code Here

Examples of org.apache.qpid.server.AMQChannel.requeue()

//        assertNull(lastNotification);

        // Kill the subscriber and check for the queue depth values.
        // Messages are unacknowledged, so those should get requeued. All messages should be on the Queue
        getQueue().unregisterSubscription(subscription);
        channel.requeue();

        assertEquals(new Long(totalSize), new Long(_queueMBean.getQueueDepth()));

        lastNotification = _queueMBean.getLastNotification();
        assertNotNull(lastNotification);
View Full Code Here

Examples of org.apache.qpid.server.AMQChannel.requeue()

//        assertEquals(new Long(0), new Long(_queueMBean.getQueueDepth()));

        // Kill the subscriber again. Now those messages should get requeued again. Check if the queue depth
        // value is correct.
        getQueue().unregisterSubscription(subscription2);
        channel.requeue();

        assertEquals(new Long(totalSize), new Long(_queueMBean.getQueueDepth()));
        getSession().closeSession();

        // Check the clear queue
View Full Code Here

Examples of org.apache.qpid.server.protocol.v0_8.AMQChannel.requeue()

            message.reject();

            if (body.getRequeue())
            {
                channel.requeue(deliveryTag);

                //this requeue represents a message rejected from the pre-dispatch queue
                //therefore we need to amend the delivery counter.
                message.decrementDeliveryCount();
            }
View Full Code Here

Examples of org.apache.qpid.server.protocol.v0_8.AMQChannel.requeue()

            {
                //this requeue represents a message rejected from the pre-dispatch queue
                //therefore we need to amend the delivery counter.
                message.decrementDeliveryCount();

                channel.requeue(deliveryTag);
            }
            else
            {
                // Since the Java client abuses the reject flag for requeing after rollback, we won't set reject here
                // as it would prevent redelivery
View Full Code Here

Examples of org.apache.qpid.server.protocol.v0_8.AMQChannel.requeue()

                        message.incrementDeliveryCount();
                    }
                }
                else
                {
                    channel.requeue(deliveryTag);
                }
            }
        }
    }
}
View Full Code Here

Examples of org.apache.qpid.server.txn.TransactionalContext.requeue()

                // Ensure message is released for redelivery
                unacked.release();

                // Deliver Message
                deliveryContext.requeue(unacked);

            }
            else
            {
                unacked.discard(_storeContext);
View Full Code Here

Examples of org.apache.qpid.server.txn.TransactionalContext.requeue()

            }

            if (!unacked.isQueueDeleted())
            {
                // Redeliver the messages to the front of the queue
                deliveryContext.requeue(unacked);
                // Deliver increments the message count but we have already deliverted this once so don't increment it again
                // this was because deliver did an increment changed this.
            }
            else
            {
View Full Code Here

Examples of org.apache.qpid.server.txn.TransactionalContext.requeue()

            long deliveryTag = entry.getKey();
           
            message.release();
            message.setRedelivered(true);

            deliveryContext.requeue(message);

            _unacknowledgedMessageMap.remove(deliveryTag);
        }
    }
View Full Code Here

Examples of org.apache.qpid.server.txn.TransactionalContext.requeue()

                // Ensure message is released for redelivery
                unacked.release();

                // Deliver Message
                deliveryContext.requeue(unacked);

            }
            else
            {
                unacked.discard(_storeContext);
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.