Package | Description |
---|---|
jakarta.enterprise.concurrent |
Classes and interfaces that make up the Jakarta Concurrency specification.
|
Modifier and Type | Method and Description |
---|---|
ManagedTaskListener |
ManagedTask.getManagedTaskListener()
The
ManagedTaskListener to receive notification of lifecycle
events of this task. |
Modifier and Type | Method and Description |
---|---|
static <V> Callable<V> |
ManagedExecutors.managedTask(Callable<V> task,
ManagedTaskListener taskListener)
Returns a
Callable object that also implements ManagedTask
interface so it can receive notification of lifecycle events with the
provided ManagedTaskListener when the task is submitted
to a ManagedExecutorService or a ManagedScheduledExecutorService . |
static <V> Callable<V> |
ManagedExecutors.managedTask(Callable<V> task,
Map<String,String> executionProperties,
ManagedTaskListener taskListener)
Returns a
Callable object that also implements ManagedTask
interface so it can receive notification of lifecycle events with the
provided ManagedTaskListener and to provide additional execution
properties when the task is submitted to a ManagedExecutorService or a
ManagedScheduledExecutorService . |
static Runnable |
ManagedExecutors.managedTask(Runnable task,
ManagedTaskListener taskListener)
Returns a
Runnable object that also implements ManagedTask
interface so it can receive notification of lifecycle events with the
provided ManagedTaskListener when the task is submitted
to a ManagedExecutorService or a ManagedScheduledExecutorService . |
static Runnable |
ManagedExecutors.managedTask(Runnable task,
Map<String,String> executionProperties,
ManagedTaskListener taskListener)
Returns a
Runnable object that also implements ManagedTask
interface so it can receive notification of lifecycle events with the
provided ManagedTaskListener and to provide additional execution
properties when the task is submitted to a ManagedExecutorService or a
ManagedScheduledExecutorService . |
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.