com.ibm.websphere.asynchbeans

Interface WorkListener

All Superinterfaces:
java.util.EventListener

  1. public interface WorkListener
  2. extends java.util.EventListener
This is a callback interface called to report on the dispatching of a Work. It is implemented by the application and supplied to startWork methods on a WorkManager.
See Also:
WorkManager

Method Summary

Modifier and Type Method and Description
  1. void
workAccepted(WorkEvent we)
This is called when the Work is accepted for dispatching.
  1. void
workCompleted(WorkEvent we)
This is called once Work.run returns.
  1. void
workRejected(WorkEvent we)
This is called when the Work cannot be processed prior to starting but after accept.
  1. void
workStarted(WorkEvent we)
This is called when the Work is about to start.

Method Detail

workAccepted

  1. void workAccepted(WorkEvent we)
This is called when the Work is accepted for dispatching.

workRejected

  1. void workRejected(WorkEvent we)
This is called when the Work cannot be processed prior to starting but after accept.

workStarted

  1. void workStarted(WorkEvent we)
This is called when the Work is about to start. When this returns the Work.run is called.

workCompleted

  1. void workCompleted(WorkEvent we)
This is called once Work.run returns.