Class ConsumerDeliverEvent
java.lang.Object
com.github.workerframework.util.rabbitmq.ConsumerDeliverEvent
- All Implemented Interfaces:
Event<QueueConsumer>
A deliver Event for a Consumer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleEvent
(QueueConsumer consumer) Trigger the action represented by this Event.
-
Constructor Details
-
ConsumerDeliverEvent
Create aa new ConsumerDeliverEvent.- Parameters:
delivery
- the combined message with metadata to deliver when this Event is triggered
-
-
Method Details
-
handleEvent
Trigger the action represented by this Event. Hand off the Delivery in this Event to a Consumer for processing.- Specified by:
handleEvent
in interfaceEvent<QueueConsumer>
- Parameters:
consumer
- the class to perform an action on
-
getDelivery
- Returns:
- the Delivery contained by this Event that will be handed off to a Consumer for processing
-