Package jakarta.resource.spi.work
Class WorkAdapter
- java.lang.Object
- 
- jakarta.resource.spi.work.WorkAdapter
 
- 
- All Implemented Interfaces:
- WorkListener,- EventListener
 
 public class WorkAdapter extends Object implements WorkListener This class is provided as a convenience for easily creatingWorkListenerinstances by extending this class and overriding only those methods of interest.- Version:
- 1.0
- Author:
- Ram Jeyaraman
 
- 
- 
Constructor SummaryConstructors Constructor Description WorkAdapter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidworkAccepted(WorkEvent e)Invoked when aWorkinstance has been accepted.voidworkCompleted(WorkEvent e)Invoked when aWorkinstance has completed execution.voidworkRejected(WorkEvent e)Invoked when aWorkinstance has been rejected.voidworkStarted(WorkEvent e)Invoked when aWorkinstance has started execution.
 
- 
- 
- 
Method Detail- 
workAcceptedpublic void workAccepted(WorkEvent e) Invoked when aWorkinstance has been accepted.- Specified by:
- workAcceptedin interface- WorkListener
- Parameters:
- e- A- WorkEventobject that provides more information about the accepted Work.
 
 - 
workRejectedpublic void workRejected(WorkEvent e) Invoked when aWorkinstance has been rejected.- Specified by:
- workRejectedin interface- WorkListener
- Parameters:
- e- A- WorkEventobject that provides more information about the rejected Work.
 
 - 
workStartedpublic void workStarted(WorkEvent e) Invoked when aWorkinstance has started execution. This only means that a thread has been allocated.- Specified by:
- workStartedin interface- WorkListener
- Parameters:
- e- A- WorkEventobject that provides more information about the rejected Work.
 
 - 
workCompletedpublic void workCompleted(WorkEvent e) Invoked when aWorkinstance has completed execution.- Specified by:
- workCompletedin interface- WorkListener
- Parameters:
- e- A- WorkEventobject that provides more information about the completed Work.
 
 
- 
 
-