Interface DurableQueueConsumerNotifications
- All Known Subinterfaces:
QueuePollingOptimizer
- All Known Implementing Classes:
DefaultDurableQueueConsumer,QueuePollingOptimizer.SimpleQueuePollingOptimizer
public interface DurableQueueConsumerNotifications
Notification interface that
This is required for
DurableQueueConsumer can implement
if they want to be notified about messages being added to the queue they're consuming fromThis is required for
DurableQueueConsumer's that use a QueuePollingOptimizer-
Method Summary
Modifier and TypeMethodDescriptionvoidmessageAdded(QueuedMessage queuedMessage) Notification from theDurableQueuesimplementation that a new message has been added to the Queue that the givenDurableQueueConsumeris consuming messages from
Note: A consumer still needs to useDurableQueues.getNextMessageReadyForDelivery(GetNextMessageReadyForDelivery)to ensure proper message locking of messages that they are processing
-
Method Details
-
messageAdded
Notification from theDurableQueuesimplementation that a new message has been added to the Queue that the givenDurableQueueConsumeris consuming messages from
Note: A consumer still needs to useDurableQueues.getNextMessageReadyForDelivery(GetNextMessageReadyForDelivery)to ensure proper message locking of messages that they are processing- Parameters:
queuedMessage- the message added
-