Package javax.resource.spi.work
Class WorkAdapter
java.lang.Object
javax.resource.spi.work.WorkAdapter
- All Implemented Interfaces:
EventListener,WorkListener
This class is provided as a convenience for easily creating
WorkListener instances by extending this class
and overriding only those methods of interest.- Version:
- 1.0
- Author:
- Ram Jeyaraman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when aWorkinstance has been accepted.voidInvoked when aWorkinstance has completed execution.voidInvoked when aWorkinstance has been rejected.voidInvoked when aWorkinstance has started execution.
-
Constructor Details
-
WorkAdapter
public WorkAdapter()
-
-
Method Details
-
workAccepted
Invoked when aWorkinstance has been accepted.- Specified by:
workAcceptedin interfaceWorkListener- Parameters:
e- The work event
-
workRejected
Invoked when aWorkinstance has been rejected.- Specified by:
workRejectedin interfaceWorkListener- Parameters:
e- The work event
-
workStarted
Invoked when aWorkinstance has started execution. This only means that a thread has been allocated.- Specified by:
workStartedin interfaceWorkListener- Parameters:
e- The work event
-
workCompleted
Invoked when aWorkinstance has completed execution.- Specified by:
workCompletedin interfaceWorkListener- Parameters:
e- The work event
-