Class ConcurrentEventHandling<T extends Event>
java.lang.Object
de.aristaflow.adept2.core.eventmanager.common.ConcurrentEventHandling<T>
- Type Parameters:
T- The type of events that are handled concurrently.
A simple class for handling events concurrently via an
executor service.
- Author:
- Ulrich Kreher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TThe event to be handled.protected final EventHandlerThe event handler. -
Constructor Summary
ConstructorsConstructorDescriptionConcurrentEventHandling(EventHandler handler, T event) Creates a newCallablefor handling an event asynchronously. -
Method Summary
-
Field Details
-
handler
The event handler. -
event
The event to be handled.
-
-
Constructor Details
-
ConcurrentEventHandling
Creates a newCallablefor handling an event asynchronously.- Parameters:
handler- The event handler.event- The event to be handled.
-
-
Method Details
-
call
- Specified by:
callin interfaceCallable<T extends Event>- Throws:
EventHandlingException
-