public abstract class DispatchEventTask<E extends Event,T> extends Task<T> implements EventDispatchHandler<E>
AUTOSTART, IGNORENULL, RUNONCE| Constructor and Description |
|---|
DispatchEventTask(java.lang.Class<E> inType) |
DispatchEventTask(int inFlags,
java.lang.Class<E> inType) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
handle(E inEvent,
java.lang.Exception ex)
Called when a matching event is dispatched.
|
int |
handleOrder() |
java.lang.Class<E> |
handleType() |
void |
onCancelHandler()
Called when this handler is unregistered with the dispatcher.
|
void |
startTaskEvent() |
void |
startTaskEvent(EventDispatcher inDispatch) |
void |
startTaskEvent(EventDispatcher inDispatch,
long milliTimeout) |
chainTask, getResult, getResult, getResultNow, isCancelled, run, startTaskpublic DispatchEventTask(java.lang.Class<E> inType)
public DispatchEventTask(int inFlags,
java.lang.Class<E> inType)
public java.lang.Class<E> handleType()
handleType in interface EventDispatchHandler<E extends Event>public int handleOrder()
handleOrder in interface EventDispatchHandler<E extends Event>public void handle(E inEvent, java.lang.Exception ex)
EventDispatchHandlerhandle in interface EventDispatchHandler<E extends Event>handle in interface EventHandler<E extends Event>inEvent - - The dispatched event.ex - - An exception to pass to the handlerpublic final void startTaskEvent()
public final void startTaskEvent(EventDispatcher inDispatch)
public final void startTaskEvent(EventDispatcher inDispatch, long milliTimeout)
public final void onCancelHandler()
EventDispatchHandleronCancelHandler in interface EventDispatchHandler<E extends Event>