Uses of Interface
jakarta.enterprise.concurrent.ManagedTaskListener
Package
Description
Classes and interfaces that make up the Jakarta Concurrency specification.
-
Uses of ManagedTaskListener in jakarta.enterprise.concurrent
Modifier and TypeMethodDescriptionManagedTask.getManagedTaskListener()
TheManagedTaskListener
to receive notification of lifecycle events of this task.Modifier and TypeMethodDescriptionstatic 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
.