Class ConsumerAckEvent
java.lang.Object
com.github.workerframework.util.rabbitmq.ConsumerAckEvent
- All Implemented Interfaces:
Event<QueueConsumer>
An acknowledge Event for a Consumer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetTag()voidhandleEvent(QueueConsumer target) Trigger the action represented by this Event.
-
Constructor Details
-
ConsumerAckEvent
public ConsumerAckEvent(long tag) Create a new ConsumerAckEvent- Parameters:
tag- the RabbitMQ id of the message to acknowledge
-
-
Method Details
-
handleEvent
Trigger the action represented by this Event. Acknowledges the message in a Consumer.- Specified by:
handleEventin interfaceEvent<QueueConsumer>- Parameters:
target- the class to perform an action on
-
getTag
public long getTag()- Returns:
- the RabbitMQ id of the message to acknowledge by this Event
-