Uses of Interface
jakarta.enterprise.concurrent.ManagedTaskListener
-
Packages that use ManagedTaskListener Package Description jakarta.enterprise.concurrent Classes and interfaces that make up the Jakarta Concurrency specification. -
-
Uses of ManagedTaskListener in jakarta.enterprise.concurrent
Methods in jakarta.enterprise.concurrent that return ManagedTaskListener Modifier and Type Method Description ManagedTaskListener
ManagedTask. getManagedTaskListener()
TheManagedTaskListener
to receive notification of lifecycle events of this task.Methods in jakarta.enterprise.concurrent with parameters of type ManagedTaskListener Modifier and Type Method Description static Runnable
ManagedExecutors. managedTask(Runnable task, ManagedTaskListener taskListener)
Returns aRunnable
object that also implementsManagedTask
interface so it can receive notification of lifecycle events with the providedManagedTaskListener
when the task is submitted to aManagedExecutorService
or aManagedScheduledExecutorService
.static Runnable
ManagedExecutors. managedTask(Runnable task, Map<String,String> executionProperties, ManagedTaskListener taskListener)
Returns aRunnable
object that also implementsManagedTask
interface so it can receive notification of lifecycle events with the providedManagedTaskListener
and to provide additional execution properties when the task is submitted to aManagedExecutorService
or aManagedScheduledExecutorService
.static <V> Callable<V>
ManagedExecutors. managedTask(Callable<V> task, ManagedTaskListener taskListener)
Returns aCallable
object that also implementsManagedTask
interface so it can receive notification of lifecycle events with the providedManagedTaskListener
when the task is submitted to aManagedExecutorService
or aManagedScheduledExecutorService
.static <V> Callable<V>
ManagedExecutors. managedTask(Callable<V> task, Map<String,String> executionProperties, ManagedTaskListener taskListener)
Returns aCallable
object that also implementsManagedTask
interface so it can receive notification of lifecycle events with the providedManagedTaskListener
and to provide additional execution properties when the task is submitted to aManagedExecutorService
or aManagedScheduledExecutorService
.
-