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

public class RegisterMessage extends AbstractCommandMessage
An internal message sent from the bus infrastructure to the EventBus' MemoryState when a new listener is registered to an event. The RegisterMessage wraps the listener to register. This message is sent from the bus infrastructure to the message queue used by the bus state manager. The bus state manager will consume each RegisterMessage and populate his internal data structures using the listenerToRegister object (actual listener) wrapped in the message.
See Also:
  • Field Details

    • listenerToRegister

      private final Object listenerToRegister
      The listener to register
  • Constructor Details

    • RegisterMessage

      public RegisterMessage(Object listenerToRegister)
      The constructor to build a RegisterMessage
      Parameters:
      listenerToRegister - The listener to register
  • Method Details

    • getMessageType

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

      public Object getListenerToRegister()
      Getter for the wrapped listener to register
      Returns:
      The listener to register wrapped in the RegisterEventMessage