Class PurgeQueue
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.PurgeQueue
-
public class PurgeQueue extends Object
Delete all messages (Queued or Dead letter Messages) in the given queue
Operation also matchesDurableQueuesInterceptor.intercept(PurgeQueue, InterceptorChain)
-
-
Constructor Summary
Constructors Constructor Description PurgeQueue(QueueName queueName)Delete all messages (Queued or Dead letter Messages) in the given queue
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PurgeQueueBuilderbuilder()Create a new builder that produces a newPurgeQueueinstanceQueueNamegetQueueName()StringtoString()
-
-
-
Field Detail
-
queueName
public final QueueName queueName
-
-
Constructor Detail
-
PurgeQueue
public PurgeQueue(QueueName queueName)
Delete all messages (Queued or Dead letter Messages) in the given queue- Parameters:
queueName- the name of the Queue where all the messages will be deleted
-
-
Method Detail
-
builder
public static PurgeQueueBuilder builder()
Create a new builder that produces a newPurgeQueueinstance- Returns:
- a new
PurgeQueueBuilderinstance
-
getQueueName
public QueueName getQueueName()
- Returns:
- the name of the Queue where all the messages will be deleted
-
-