commonj.work
Interface WorkListener

All Superinterfaces:
java.util.EventListener

public interface WorkListener
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 scheduleWork methods on a WorkManager. All these methods are called using the J2EE context of the component that called scheduleWork.

See Also:
WorkManager

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

Method Detail

workAccepted

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


workRejected

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


workStarted

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


workCompleted

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



Copyright BEA Systems, Inc. and International Business Machines Corp 2003. All rights reserved.