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

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

    • stickyEventToPost

      private final Object stickyEventToPost
      The sticky event to post
  • Constructor Details

    • PostStickyEventMessage

      public PostStickyEventMessage(Object stickyEventToPost)
      The constructor to build a PostStickyEventMessage
      Parameters:
      stickyEventToPost - The sticky event to post
  • 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 sticky event to post wrapped in the PostedEventMessage