java.lang.Object
it.rebirthproject.ufoeb.architecture.messages.interfaces.AbstractCommandMessage
it.rebirthproject.ufoeb.architecture.messages.commands.PostEventMessage
All Implemented Interfaces:
Message

public class PostEventMessage extends AbstractCommandMessage
An internal message sent from the event bus infrastructure to the EventBus' MemoryState when an event is posted to the bus. The PostEventMessage wraps the posted event. The BusMemoryStateManager will consume each PostEventMessage and send it to the workers queue to process the event.
See Also:
  • Field Details

    • eventToPost

      private final Object eventToPost
      The event to post
  • Constructor Details

    • PostEventMessage

      public PostEventMessage(Object eventToPost)
      The constructor to build a PostEventMessage
      Parameters:
      eventToPost - The event to post, which will be eventually notified to listeners.
  • Method Details

    • getMessageType

      public MessageType getMessageType()
      Getter for the message type
      Returns:
      The message type
    • getEventToPost

      public Object getEventToPost()
      Getter for the wrapped event to post
      Returns:
      The event to post wrapped in the PostedEventMessage