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

public class RemoveStickyEventMessage extends AbstractCommandMessage
An internal message sent when a sticky event must to be removed from the EventBus' MemoryState. The RemoveStickyEventMessage is sent to the BusMemoryStateManager which will consume it and remove the sticky event. The RemoveStickyEventMessage wraps the sticky event class to be removed.
See Also:
  • Field Details

    • eventClass

      private final Class<?> eventClass
      The class of the sticky event to remove.
  • Constructor Details

    • RemoveStickyEventMessage

      public RemoveStickyEventMessage(Class<?> eventClass)
      The constructor to build a RemoveStickyEventMessage
      Parameters:
      eventClass - The class of the sticky event to remove.
  • Method Details

    • getMessageType

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

      public Class<?> getEventClass()
      Getter for the wrapped class of the sticky event to remove.
      Returns:
      The class of the sticky event to remove