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 aWorkinstance that would be distributed by aDistributableWorkManagerfor execution in a remoteDistributableWorkManagerDistributableWorkManager This interface models aWorkManagerthat supports distributed execution of Work instances.Work This models aWorkinstance that would be executed by aWorkManagerupon 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 theWorkContexts associated with aWorkinstance.WorkContextProvider This interface specifies the methods aWorkinstance uses to associate aListofWorkContextinstances to be set when theWorkinstance gets executed by aWorkManager.WorkListener This models aWorkListenerinstance which would be notified by theWorkManagerwhen the variousWorkprocessing events (work accepted, work rejected, work started, work completed) occur.WorkManager This interface models aWorkManagerwhich provides a facility to submitWorkinstances for execution. -
Class Summary Class Description ExecutionContext This class models an execution context (transaction, security, etc) with which theWorkinstance must be executed.HintsContext A standardWorkContextthat allows aWorkinstance to propagate quality-of-service (QoS) hints about theWorkto theWorkManager.SecurityContext A standardWorkContextthat allows aWorkinstance to propagate security related context information from an EIS to an application server.TransactionContext A standardWorkContextthat allows aWorkinstance to propagate transaction related context information from an EIS to an application server.WorkAdapter This class is provided as a convenience for easily creatingWorkListenerinstances by extending this class and overriding only those methods of interest.WorkContextErrorCodes This class models the possible error conditions that might occur during associating anWorkContextwith aWorkinstance.WorkEvent This class models the various events that occur during the processing of aWorkinstance. -
Exception Summary Exception Description RetryableWorkRejectedException A subclass of theWorkRejectedExceptionthat indicates that the the service unavailability is transient.WorkCompletedException This exception is thrown by aWorkManagerto indicate that a submittedWorkinstance has completed with an exception.WorkException A common base class for allWorkprocessing related exceptions.WorkRejectedException This exception is thrown by aWorkManagerto indicate that a submittedWorkinstance has been rejected.