T - The type of events that are handled concurrently.public class ConcurrentEventHandling<T extends Event>
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Boolean>
| Modifier and Type | Field and Description |
|---|---|
protected T |
event
The event to be handled.
|
protected EventHandler |
handler
The event handler.
|
| Constructor and Description |
|---|
ConcurrentEventHandling(EventHandler handler,
T event)
Creates a new
Callable for handling an event asynchronously. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
call() |
protected final EventHandler handler
public ConcurrentEventHandling(EventHandler handler, T event)
Callable for handling an event asynchronously.handler - The event handler.event - The event to be handled.public java.lang.Boolean call()
throws EventHandlingException
call in interface java.util.concurrent.Callable<java.lang.Boolean>EventHandlingException