Package jakarta.resource.spi.work
Class WorkAdapter
java.lang.Object
jakarta.resource.spi.work.WorkAdapter
- All Implemented Interfaces:
WorkListener
,EventListener
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when aWork
instance has been accepted.void
Invoked when aWork
instance has completed execution.void
Invoked when aWork
instance has been rejected.void
Invoked when aWork
instance has started execution.
-
Constructor Details
-
WorkAdapter
public WorkAdapter()
-
-
Method Details
-
workAccepted
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
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
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
Invoked when aWork
instance has completed execution.- Specified by:
workCompleted
in interfaceWorkListener
- Parameters:
e
- AWorkEvent
object that provides more information about the completed Work.
-