Class GetNextMessageReadyForDelivery
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.GetNextMessageReadyForDelivery
-
public class GetNextMessageReadyForDelivery extends Object
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
Operation also matchedDurableQueuesInterceptor.intercept(GetNextMessageReadyForDelivery, InterceptorChain)
-
-
Constructor Summary
Constructors Constructor Description GetNextMessageReadyForDelivery(QueueName queueName)Query the next Queued Message (i.e.GetNextMessageReadyForDelivery(QueueName queueName, Collection<String> excludeOrderedMessagesWithKey)Query the next Queued Message (i.e.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetNextMessageReadyForDeliveryBuilderbuilder()Create a new builder that produces a newGetNextMessageReadyForDeliveryinstanceCollection<String>getExcludeOrderedMessagesWithKey()QueueNamegetQueueName()StringtoString()
-
-
-
Field Detail
-
queueName
public final QueueName queueName
the name of the Queue where we will query for the next message ready for delivery
-
-
Constructor Detail
-
GetNextMessageReadyForDelivery
public GetNextMessageReadyForDelivery(QueueName queueName)
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 Detail
-
builder
public static GetNextMessageReadyForDeliveryBuilder builder()
Create a new builder that produces a newGetNextMessageReadyForDeliveryinstance- Returns:
- a new
GetNextMessageReadyForDeliveryBuilderinstance
-
getQueueName
public QueueName getQueueName()
- Returns:
- the name of the Queue where we will query for the next message ready for delivery
-
getExcludeOrderedMessagesWithKey
public Collection<String> getExcludeOrderedMessagesWithKey()
- Returns:
- collection of
OrderedMessage.getKey()'s to exclude in the search for the next message
-
-