- 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 creatingWorkListener
instances by extending this class and overriding only those methods of interest.- Version:
- 1.0
- Author:
- Ram Jeyaraman
-
-
Constructor Summary
Constructors Constructor Description WorkAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
workAccepted(WorkEvent e)
Invoked when aWork
instance has been accepted.void
workCompleted(WorkEvent e)
Invoked when aWork
instance has completed execution.void
workRejected(WorkEvent e)
Invoked when aWork
instance has been rejected.void
workStarted(WorkEvent e)
Invoked when aWork
instance has started execution.
-
-
-
Method Detail
-
workAccepted
public void workAccepted(WorkEvent e)
Invoked when aWork
instance has been accepted.- Specified by:
workAccepted
in interfaceWorkListener
- Parameters:
e
- AWorkEvent
object that provides more information about the accepted Work.
-
workRejected
public void workRejected(WorkEvent e)
Invoked when aWork
instance has been rejected.- Specified by:
workRejected
in interfaceWorkListener
- Parameters:
e
- AWorkEvent
object that provides more information about the rejected Work.
-
workStarted
public void workStarted(WorkEvent e)
Invoked when aWork
instance has started execution. This only means that a thread has been allocated.- Specified by:
workStarted
in interfaceWorkListener
- Parameters:
e
- AWorkEvent
object that provides more information about the rejected Work.
-
workCompleted
public void workCompleted(WorkEvent e)
Invoked when aWork
instance has completed execution.- Specified by:
workCompleted
in interfaceWorkListener
- Parameters:
e
- AWorkEvent
object that provides more information about the completed Work.
-
-