Class GetDeadLetterMessages
java.lang.Object
dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.GetDeadLetterMessages
Query Dead Letter Messages (i.e. not normal Queued Messages) for the given Queue
Operation also matched
Operation also matched
DurableQueuesInterceptor.intercept(GetDeadLetterMessages, InterceptorChain)-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGetDeadLetterMessages(QueueName queueName, DurableQueues.QueueingSortOrder queueingSortOrder, long startIndex, long pageSize) Query Dead Letter Messages (i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic GetDeadLetterMessagesBuilderbuilder()Create a new builder that produces a newGetDeadLetterMessagesinstancelonglongvoidsetPageSize(long pageSize) voidsetQueueingSortOrder(DurableQueues.QueueingSortOrder queueingSortOrder) voidsetStartIndex(long startIndex) toString()
-
Field Details
-
queueName
-
-
Constructor Details
-
GetDeadLetterMessages
public GetDeadLetterMessages(QueueName queueName, DurableQueues.QueueingSortOrder queueingSortOrder, long startIndex, long pageSize) Query Dead Letter Messages (i.e. not normal Queued Messages) for the given Queue- Parameters:
queueName- the name of the Queue where we will query for Dead letter 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 newGetDeadLetterMessagesinstance- Returns:
- a new
GetDeadLetterMessagesBuilderinstance
-
getQueueName
- Returns:
- the name of the Queue where we will query for Dead letter 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
-