Interface DurableQueueConsumerNotifications
-
- All Known Subinterfaces:
QueuePollingOptimizer
- All Known Implementing Classes:
DefaultDurableQueueConsumer,QueuePollingOptimizer.SimpleQueuePollingOptimizer
public interface DurableQueueConsumerNotificationsNotification interface thatDurableQueueConsumercan implement if they want to be notified about messages being added to the queue they're consuming from
This is required forDurableQueueConsumer's that use aQueuePollingOptimizer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmessageAdded(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 Detail
-
messageAdded
void messageAdded(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- Parameters:
queuedMessage- the message added
-
-