Module it.rebirthproject.ufoeb
Class PostEventMessage
java.lang.Object
it.rebirthproject.ufoeb.architecture.messages.interfaces.AbstractCommandMessage
it.rebirthproject.ufoeb.architecture.messages.commands.PostEventMessage
- All Implemented Interfaces:
Message
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 Summary
-
Constructor Summary
ConstructorDescriptionPostEventMessage
(Object eventToPost) The constructor to build aPostEventMessage
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the wrapped event to postGetter for the message typeMethods inherited from class it.rebirthproject.ufoeb.architecture.messages.interfaces.AbstractCommandMessage
toString
-
Field Details
-
eventToPost
The event to post
-
-
Constructor Details
-
PostEventMessage
The constructor to build aPostEventMessage
- Parameters:
eventToPost
- The event to post, which will be eventually notified to listeners.
-
-
Method Details
-
getMessageType
Getter for the message type- Returns:
- The message type
-
getEventToPost
Getter for the wrapped event to post- Returns:
- The event to post wrapped in the PostedEventMessage
-