Class ManagedExecutors.Adapter
java.lang.Object
jakarta.enterprise.concurrent.ManagedExecutors.Adapter
- All Implemented Interfaces:
ManagedTask
- Direct Known Subclasses:
ManagedExecutors.CallableAdapter, ManagedExecutors.RunnableAdapter
- Enclosing class:
ManagedExecutors
- Since:
- 1.0
-
Field Summary
FieldsFields inherited from interface 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 theManagedExecutorServiceorManagedScheduledExecutorServicewhen executing this task.TheManagedTaskListenerto 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:ManagedTaskTheManagedTaskListenerto receive notification of lifecycle events of this task.- Specified by:
getManagedTaskListenerin interfaceManagedTask- Returns:
- The
ManagedTaskListenerto 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:ManagedTaskProvides additional information to theManagedExecutorServiceorManagedScheduledExecutorServicewhen 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:
getExecutionPropertiesin interfaceManagedTask- Returns:
- A Map<String, String> containing additional execution properties, or null if no additional information is provided for this task.
-
initExecutionProperties
-