Class GetNextMessageReadyForDelivery
java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.GetNextMessageReadyForDelivery
Query the next Queued Message (i.e. not including Dead Letter Messages) that's ready to be delivered to a
Note this method MUST be called within an existing
Operation also matched
DurableQueueConsumerNote this method MUST be called within an existing
UnitOfWork IF
using TransactionalMode.FullyTransactionalOperation also matched
DurableQueuesInterceptor.intercept(GetNextMessageReadyForDelivery, InterceptorChain)-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGetNextMessageReadyForDelivery(QueueName queueName) Query the next Queued Message (i.e.GetNextMessageReadyForDelivery(QueueName queueName, Collection<String> excludeOrderedMessagesWithKey) Query the next Queued Message (i.e. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new builder that produces a newGetNextMessageReadyForDeliveryinstancetoString()
-
Field Details
-
queueName
the name of the Queue where we will query for the next message ready for delivery
-
-
Constructor Details
-
GetNextMessageReadyForDelivery
Query the next Queued Message (i.e. not including Dead Letter Messages) that's ready to be delivered to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional- Parameters:
queueName- the name of the Queue where we will query for the next message ready for delivery
-
GetNextMessageReadyForDelivery
public GetNextMessageReadyForDelivery(QueueName queueName, Collection<String> excludeOrderedMessagesWithKey) Query the next Queued Message (i.e. not including Dead Letter Messages) that's ready to be delivered to aDurableQueueConsumer
Note this method MUST be called within an existingUnitOfWorkIF usingTransactionalMode.FullyTransactional- Parameters:
queueName- the name of the Queue where we will query for the next message ready for deliveryexcludeOrderedMessagesWithKey- collection ofOrderedMessage.getKey()'s to exclude in the search for the next message
-
-
Method Details
-
builder
Create a new builder that produces a newGetNextMessageReadyForDeliveryinstance- Returns:
- a new
GetNextMessageReadyForDeliveryBuilderinstance
-
getQueueName
- Returns:
- the name of the Queue where we will query for the next message ready for delivery
-
getExcludeOrderedMessagesWithKey
- Returns:
- collection of
OrderedMessage.getKey()'s to exclude in the search for the next message
-
toString
-