Module it.rebirthproject.ufoeb
Class EventExecutor
java.lang.Object
it.rebirthproject.ufoeb.architecture.executor.EventExecutor
- All Implemented Interfaces:
Runnable
An EventExecutor is a worker used by the bus to notify listeners. It's
possible to use just one EventExecutor or more, depending on the bus
configuration specified using the
EventBusBuilder-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Objectprivate static final org.slf4j.LoggerThe logger used by this classprivate final List<Registration> -
Constructor Summary
ConstructorsConstructorDescriptionEventExecutor(List<Registration> registrationList, Object eventToPost) The constructor used to build an EventExecutor -
Method Summary
Modifier and TypeMethodDescriptionGet the event to post to the various registrationsGet the registrations listvoidrun()This is the main method of theEventExecutor.
-
Field Details
-
logger
private static final org.slf4j.Logger loggerThe logger used by this class -
registrationList
-
eventToPost
-
-
Constructor Details
-
EventExecutor
The constructor used to build an EventExecutor- Parameters:
registrationList- List of registrations that get the eventeventToPost- The posted event to send to the registrations
-
-
Method Details
-
run
public void run()This is the main method of theEventExecutor. It just iterate to process the event with every registrations. -
getEventToPost
Get the event to post to the various registrations- Returns:
- The event to post to the registrations
-
getRegistrationList
Get the registrations list- Returns:
- The registrations list
-