public interface WorkEvents
| Modifier and Type | Method and Description |
|---|---|
void |
unexpectedException(EventSource es,
WorkListener wl,
java.lang.Throwable t)
An unexpected exception was detected by the runtime when dealing with a WorkListener.
|
void |
workCompleted(EventSource es,
Work e,
java.lang.Throwable t)
This is fired when a work is completed with an exception
but no WorkListener was specified to
notify the application.
|
void |
workListenerThrewException(EventSource es,
WorkListener wl,
java.lang.Throwable t)
The WorkListener which was specified has thrown an unexpected exception.
|
void |
workRejected(EventSource es,
Work e,
java.lang.Throwable t)
This is fired when a work is rejected but no WorkListener was specified to
notify the application.
|
void workListenerThrewException(EventSource es, WorkListener wl, java.lang.Throwable t)
es - The EventSource which 'owns' the Work being executed. Probably a WorkManager.wl - The WorkListener which threw the exceptiont - The thrown exception.void unexpectedException(EventSource es, WorkListener wl, java.lang.Throwable t)
es - The EventSource in use.wl - The WorkListener in use.t - The exception which was detected.void workRejected(EventSource es, Work e, java.lang.Throwable t)
es - The EventSource owning the Work, probably a WorkManagere - The Work in question.t - An exception if one was thrown, may be null.void workCompleted(EventSource es, Work e, java.lang.Throwable t)
es - The EventSource owning the Work, probably a WorkManagere - The Work in question.t - The exception.