Module it.rebirthproject.ufoeb
Class RegisterMessage
java.lang.Object
it.rebirthproject.ufoeb.architecture.messages.interfaces.AbstractCommandMessage
it.rebirthproject.ufoeb.architecture.messages.commands.RegisterMessage
- All Implemented Interfaces:
Message
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 Summary
-
Constructor Summary
ConstructorDescriptionRegisterMessage
(Object listenerToRegister) The constructor to build aRegisterMessage
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the wrapped listener to registerGetter for the message typeMethods inherited from class it.rebirthproject.ufoeb.architecture.messages.interfaces.AbstractCommandMessage
toString
-
Field Details
-
listenerToRegister
The listener to register
-
-
Constructor Details
-
RegisterMessage
The constructor to build aRegisterMessage
- Parameters:
listenerToRegister
- The listener to register
-
-
Method Details
-
getMessageType
Getter for the message type- Returns:
- The message type
-
getListenerToRegister
Getter for the wrapped listener to register- Returns:
- The listener to register wrapped in the RegisterEventMessage
-