com.ibm.websphere.asynchbeans

Interface WorkEvents

All known subinterfaces:
WorkManagerEvents

  1. public interface WorkEvents
This interface defines the events which are published to an EventSource when a Work is executed and possibly fails.

Method Summary

Modifier and Type Method and Description
  1. void
unexpectedException(EventSource es,WorkListener wl,java.lang.Throwable t)
An unexpected exception was detected by the runtime when dealing with a WorkListener.
  1. 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.
  1. void
workListenerThrewException(EventSource es,WorkListener wl,java.lang.Throwable t)
The WorkListener which was specified has thrown an unexpected exception.
  1. 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

  1. void workListenerThrewException( EventSource es,
  2. WorkListener wl,
  3. 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 exception
t - The thrown exception.

unexpectedException

  1. void unexpectedException(EventSource es,
  2. WorkListener wl,
  3. 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

  1. void workRejected(EventSource es,
  2. Work e,
  3. 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 WorkManager
e - The Work in question.
t - An exception if one was thrown, may be null.

workCompleted

  1. void workCompleted(EventSource es,
  2. Work e,
  3. 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 WorkManager
e - The Work in question.
t - The exception.