Class GetQueuedMessages
java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.GetQueuedMessages
Query Queued Messages (i.e. not including Dead Letter Messages) for the given Queue
Operation also matched
Operation also matched
DurableQueuesInterceptor.intercept(GetQueuedMessages, InterceptorChain)-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGetQueuedMessages(QueueName queueName, DurableQueues.QueueingSortOrder queueingSortOrder, long startIndex, long pageSize) Query Queued Messages (i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic GetQueuedMessagesBuilderbuilder()Create a new builder that produces a newGetQueuedMessagesinstancelonglongvoidsetPageSize(long pageSize) voidsetQueueingSortOrder(DurableQueues.QueueingSortOrder queueingSortOrder) voidsetStartIndex(long startIndex) toString()
-
Field Details
-
queueName
-
-
Constructor Details
-
GetQueuedMessages
public GetQueuedMessages(QueueName queueName, DurableQueues.QueueingSortOrder queueingSortOrder, long startIndex, long pageSize) Query Queued Messages (i.e. not including any Dead Letter Messages) for the given Queue- Parameters:
queueName- the name of the Queue where we will query for queued messagesqueueingSortOrder- the sort order for theQueuedMessage.getId()startIndex- the index of the first message to include in the result (used for pagination)pageSize- how many messages to include in the result (used for pagination)
-
-
Method Details
-
builder
Create a new builder that produces a newGetQueuedMessagesinstance- Returns:
- a new
GetQueuedMessagesBuilderinstance
-
getQueueName
- Returns:
- the name of the Queue where we will query for queued messages
-
getQueueingSortOrder
- Returns:
- the sort order for the
QueuedMessage.getId()
-
setQueueingSortOrder
- Parameters:
queueingSortOrder- the sort order for theQueuedMessage.getId()
-
getStartIndex
public long getStartIndex()- Returns:
- the index of the first message to include in the result (used for pagination)
-
setStartIndex
public void setStartIndex(long startIndex) - Parameters:
startIndex- the index of the first message to include in the result (used for pagination)
-
getPageSize
public long getPageSize()- Returns:
- how many messages to include in the result (used for pagination)
-
setPageSize
public void setPageSize(long pageSize) - Parameters:
pageSize- how many messages to include in the result (used for pagination)
-
toString
-