java.lang.Object
jakarta.enterprise.concurrent.ManagedExecutors.Adapter
- All Implemented Interfaces:
ManagedTask
- Direct Known Subclasses:
ManagedExecutors.CallableAdapter
,ManagedExecutors.RunnableAdapter
- Enclosing class:
ManagedExecutors
-
Field Summary
FieldsFields inherited from interface jakarta.enterprise.concurrent.ManagedTask
IDENTITY_NAME, LONGRUNNING_HINT, SUSPEND, TRANSACTION, USE_TRANSACTION_OF_EXECUTION_THREAD
-
Constructor Summary
ConstructorsConstructorDescriptionAdapter
(ManagedTaskListener taskListener, Map<String, String> executionProperties, ManagedTask managedTask) -
Method Summary
Modifier and TypeMethodDescriptionProvides additional information to theManagedExecutorService
orManagedScheduledExecutorService
when executing this task.TheManagedTaskListener
to receive notification of lifecycle events of this task.
-
Field Details
-
taskListener
-
executionProperties
-
managedTask
-
-
Constructor Details
-
Adapter
public Adapter(ManagedTaskListener taskListener, Map<String, String> executionProperties, ManagedTask managedTask)
-
-
Method Details
-
getManagedTaskListener
Description copied from interface:ManagedTask
TheManagedTaskListener
to receive notification of lifecycle events of this task.- Specified by:
getManagedTaskListener
in interfaceManagedTask
- Returns:
- The
ManagedTaskListener
to receive notification of lifecycle events of this task, or null if it is not necessary to get notified of such events.
-
getExecutionProperties
Description copied from interface:ManagedTask
Provides additional information to theManagedExecutorService
orManagedScheduledExecutorService
when executing this task.Some standard property keys are defined in this class. Custom property keys may be defined but must not begin with "jakarta.enterprise.concurrent.".
- Specified by:
getExecutionProperties
in interfaceManagedTask
- Returns:
- A Map<String, String> containing additional execution properties, or null if no additional information is provided for this task.
-
initExecutionProperties
-