ManagedExecutorService or
ManagedScheduledExecutorService can optionally implement this
interface to provide identifying information about the task, to provide
a ManagedTaskListener to get notification of lifecycle events of
the task, or to provide additional execution properties.
See also ManagedExecutors.managedTask().
| Modifier and Type | Field and Description |
|---|---|
| public static final String | IDENTITY_NAME
Execution property to be returned in |
| public static final String | LONGRUNNING_HINT
Execution property to be returned in |
| public static final String | SUSPEND
Constant for the "SUSPEND" value of the TRANSACTION execution property. |
| public static final String | TRANSACTION
Execution property to be returned in
"SUSPEND" (the default if unspecified) - Any transaction that is currently
active on the thread will be suspended and a
|
| public static final String | USE_TRANSACTION_OF_EXECUTION_THREAD
Constant for the "USE_TRANSACTION_OF_EXECUTION_THREAD" value of the TRANSACTION execution property. |
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: A Map<String, String> containing additional execution properties, or null if no additional information is provided for this task.Provides additional information to the |
| public ManagedTaskListener | Returns: TheManagedTaskListener to receive notification of
lifecycle events of this task, or null if it is not necessary to get
notified of such events.The |
| IDENTITY_NAME | back to summary |
|---|---|
| public static final String IDENTITY_NAME Execution property to be returned in | |
| LONGRUNNING_HINT | back to summary |
|---|---|
| public static final String LONGRUNNING_HINT Execution property to be returned in | |
| SUSPEND | back to summary |
|---|---|
| public static final String SUSPEND Constant for the "SUSPEND" value of the TRANSACTION execution property.
See | |
| TRANSACTION | back to summary |
|---|---|
| public static final String TRANSACTION Execution property to be returned in
"SUSPEND" (the default if unspecified) - Any transaction that is currently
active on the thread will be suspended and a
"USE_TRANSACTION_OF_EXECUTION_THREAD" - The contextual proxy object method
will run within the transaction (if any) of the execution thread. A
| |
| USE_TRANSACTION_OF_EXECUTION_THREAD | back to summary |
|---|---|
| public static final String USE_TRANSACTION_OF_EXECUTION_THREAD Constant for the "USE_TRANSACTION_OF_EXECUTION_THREAD" value of the
TRANSACTION execution property.
See | |
| getExecutionProperties | back to summary |
|---|---|
| public Map Provides additional information to the Some standard property keys are defined in this class. Custom property keys may be defined but must not begin with "javax.enterprise.concurrent.". | |
| getManagedTaskListener | back to summary |
|---|---|
| public ManagedTaskListener getManagedTaskListener() The
| |