Class GetDeadLetterMessages
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.GetDeadLetterMessages
-
public class GetDeadLetterMessages extends Object
Query Dead Letter Messages (i.e. not normal Queued Messages) for the given Queue
Operation also matchedDurableQueuesInterceptor.intercept(GetDeadLetterMessages, InterceptorChain)
-
-
Constructor Summary
Constructors Constructor Description GetDeadLetterMessages(QueueName queueName, DurableQueues.QueueingSortOrder queueingSortOrder, long startIndex, long pageSize)Query Dead Letter Messages (i.e.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetDeadLetterMessagesBuilderbuilder()Create a new builder that produces a newGetDeadLetterMessagesinstancelonggetPageSize()DurableQueues.QueueingSortOrdergetQueueingSortOrder()QueueNamegetQueueName()longgetStartIndex()voidsetPageSize(long pageSize)voidsetQueueingSortOrder(DurableQueues.QueueingSortOrder queueingSortOrder)voidsetStartIndex(long startIndex)StringtoString()
-
-
-
Field Detail
-
queueName
public final QueueName queueName
-
-
Constructor Detail
-
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 Detail
-
builder
public static GetDeadLetterMessagesBuilder builder()
Create a new builder that produces a newGetDeadLetterMessagesinstance- Returns:
- a new
GetDeadLetterMessagesBuilderinstance
-
getQueueName
public QueueName getQueueName()
- Returns:
- the name of the Queue where we will query for Dead letter messages
-
getQueueingSortOrder
public DurableQueues.QueueingSortOrder getQueueingSortOrder()
- Returns:
- the sort order for the
QueuedMessage.getId()
-
setQueueingSortOrder
public void setQueueingSortOrder(DurableQueues.QueueingSortOrder queueingSortOrder)
- 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)
-
-