Interface QueuePollingOptimizer
- All Superinterfaces:
DurableQueueConsumerNotifications
- All Known Implementing Classes:
QueuePollingOptimizer.SimpleQueuePollingOptimizer
Optimizer designed to work together with the
The optimizer is responsible for optimizing the frequency by which the
If a given Queue doesn't experience a high influx of message, or a lot of message's have (
The
DefaultDurableQueueConsumerThe optimizer is responsible for optimizing the frequency by which the
DefaultDurableQueueConsumer
is polling the underlying database for new messages related to a given QueueName.If a given Queue doesn't experience a high influx of message, or a lot of message's have (
QueuedMessage.getNextDeliveryTimestamp())
that is further into the future, then it doesn't make sense to poll the database too often.The
QueuePollingOptimizer.SimpleQueuePollingOptimizer supports extending the polling sleep time (i.e. the time between calls to
DurableQueues.getNextMessageReadyForDelivery(GetNextMessageReadyForDelivery)) up until a given threshold.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classTheQueuePollingOptimizer.SimpleQueuePollingOptimizersupports extending the polling sleep time (i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueuePollingOptimizerNone()voidqueuePollingReturnedMessage(QueuedMessage queuedMessage) voidbooleanMethods inherited from interface dk.cloudcreate.essentials.components.foundation.messaging.queue.DurableQueueConsumerNotifications
messageAdded
-
Method Details
-
None
-
queuePollingReturnedNoMessages
void queuePollingReturnedNoMessages() -
queuePollingReturnedMessage
-
shouldSkipPolling
boolean shouldSkipPolling()
-