Class PublisherPublishEvent
java.lang.Object
com.github.workerframework.util.rabbitmq.PublisherPublishEvent
- All Implemented Interfaces:
Event<QueuePublisher>
A publish event for a class implementing the Publisher interface.
-
Constructor Summary
ConstructorsConstructorDescriptionPublisherPublishEvent
(byte[] messageData) Create a new PublisherPublishEvent. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleEvent
(QueuePublisher target) Trigger the action represented by this Event.
-
Constructor Details
-
PublisherPublishEvent
public PublisherPublishEvent(byte[] messageData) Create a new PublisherPublishEvent.- Parameters:
messageData
- the message data to publish when this Event is triggered
-
-
Method Details
-
handleEvent
Trigger the action represented by this Event. Triggers a Publisher to publish the message data contained in this Event.- Specified by:
handleEvent
in interfaceEvent<QueuePublisher>
- Parameters:
target
- the class to perform an action on
-