Module jakarta.resource
Package jakarta.resource.spi.work
This package contains APIs for the Work Management, Generic and Security Work Context contracts.
-
Interface Summary Interface Description DistributableWork This models aWork
instance that would be distributed by aDistributableWorkManager
for execution in a remoteDistributableWorkManager
DistributableWorkManager This interface models aWorkManager
that supports distributed execution of Work instances.Work This models aWork
instance that would be executed by aWorkManager
upon submission.WorkContext This class serves as a standard mechanism for a resource adapter to propagate an imported context from an enterprise information system to an application server.WorkContextLifecycleListener This class models the various events that occur during the processing of theWorkContext
s associated with aWork
instance.WorkContextProvider This interface specifies the methods aWork
instance uses to associate aList
ofWorkContext
instances to be set when theWork
instance gets executed by aWorkManager
.WorkListener This models aWorkListener
instance which would be notified by theWorkManager
when the variousWork
processing events (work accepted, work rejected, work started, work completed) occur.WorkManager This interface models aWorkManager
which provides a facility to submitWork
instances for execution. -
Class Summary Class Description ExecutionContext This class models an execution context (transaction, security, etc) with which theWork
instance must be executed.HintsContext A standardWorkContext
that allows aWork
instance to propagate quality-of-service (QoS) hints about theWork
to theWorkManager
.SecurityContext A standardWorkContext
that allows aWork
instance to propagate security related context information from an EIS to an application server.TransactionContext A standardWorkContext
that allows aWork
instance to propagate transaction related context information from an EIS to an application server.WorkAdapter This class is provided as a convenience for easily creatingWorkListener
instances by extending this class and overriding only those methods of interest.WorkContextErrorCodes This class models the possible error conditions that might occur during associating anWorkContext
with aWork
instance.WorkEvent This class models the various events that occur during the processing of aWork
instance. -
Exception Summary Exception Description RetryableWorkRejectedException A subclass of theWorkRejectedException
that indicates that the the service unavailability is transient.WorkCompletedException This exception is thrown by aWorkManager
to indicate that a submittedWork
instance has completed with an exception.WorkException A common base class for allWork
processing related exceptions.WorkRejectedException This exception is thrown by aWorkManager
to indicate that a submittedWork
instance has been rejected.