Class StopConsumingFromQueue
- java.lang.Object
-
- dk.cloudcreate.essentials.components.foundation.messaging.queue.operations.StopConsumingFromQueue
-
public class StopConsumingFromQueue extends Object
Stop an asynchronous message consumer.
Is initiated whenDurableQueueConsumer.cancel()is called Operation also matchesDurableQueuesInterceptor.intercept(StopConsumingFromQueue, InterceptorChain)
-
-
Field Summary
Fields Modifier and Type Field Description DurableQueueConsumerdurableQueueConsumerThe durable queue consumer being stopped
-
Constructor Summary
Constructors Constructor Description StopConsumingFromQueue(DurableQueueConsumer durableQueueConsumer)Stop an asynchronous message consumer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConsumeFromQueueBuilderbuilder()Create a new builder that produces a newConsumeFromQueueinstanceDurableQueueConsumergetDurableQueueConsumer()StringtoString()
-
-
-
Field Detail
-
durableQueueConsumer
public final DurableQueueConsumer durableQueueConsumer
The durable queue consumer being stopped
-
-
Constructor Detail
-
StopConsumingFromQueue
public StopConsumingFromQueue(DurableQueueConsumer durableQueueConsumer)
Stop an asynchronous message consumer.- Parameters:
durableQueueConsumer- the durable queue consumer being stopped
-
-
Method Detail
-
builder
public static ConsumeFromQueueBuilder builder()
Create a new builder that produces a newConsumeFromQueueinstance- Returns:
- a new
ConsumeFromQueueBuilderinstance
-
getDurableQueueConsumer
public DurableQueueConsumer getDurableQueueConsumer()
- Returns:
- the durable queue consumer being stopped
-
-