com.ibm.websphere.asynchbeans
Interface WorkEvents
-
- All Known Subinterfaces:
- WorkManagerEvents
public interface WorkEvents
This interface defines the events which are published to an EventSource when a Work is executed and possibly fails.
-
-
Method Summary
Methods 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.
-
-
-
Method Detail
-
workListenerThrewException
void workListenerThrewException(EventSource es, WorkListener wl, java.lang.Throwable t)
The WorkListener which was specified has thrown an unexpected exception.- Parameters:
es
- The EventSource which 'owns' the Work being executed. Probably a WorkManager.wl
- The WorkListener which threw the exceptiont
- The thrown exception.
-
unexpectedException
void unexpectedException(EventSource es, WorkListener wl, java.lang.Throwable t)
An unexpected exception was detected by the runtime when dealing with a WorkListener. This usually indicates a system problem and should not normally be fired.- Parameters:
es
- The EventSource in use.wl
- The WorkListener in use.t
- The exception which was detected.
-
workRejected
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.- Parameters:
es
- The EventSource owning the Work, probably a WorkManagere
- The Work in question.t
- An exception if one was thrown, may be null.
-
workCompleted
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.- Parameters:
es
- The EventSource owning the Work, probably a WorkManagere
- The Work in question.t
- The exception.
-
-