Class PublisherPublishEvent

java.lang.Object
com.github.workerframework.util.rabbitmq.PublisherPublishEvent
All Implemented Interfaces:
Event<QueuePublisher>

public class PublisherPublishEvent extends Object implements Event<QueuePublisher>
A publish event for a class implementing the Publisher interface.
  • 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

      public void handleEvent(QueuePublisher target)
      Trigger the action represented by this Event. Triggers a Publisher to publish the message data contained in this Event.
      Specified by:
      handleEvent in interface Event<QueuePublisher>
      Parameters:
      target - the class to perform an action on