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
Fields in jakarta.enterprise.concurrent declared as ManagedTaskListener Modifier and Type Field Description private ManagedTaskListener
ManagedExecutors.Adapter. taskListener
Methods in jakarta.enterprise.concurrent that return ManagedTaskListener Modifier and Type Method Description ManagedTaskListener
ManagedExecutors.Adapter. getManagedTaskListener()
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 java.lang.Runnable
ManagedExecutors. managedTask(java.lang.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 java.lang.Runnable
ManagedExecutors. managedTask(java.lang.Runnable task, java.util.Map<java.lang.String,java.lang.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> java.util.concurrent.Callable<V>
ManagedExecutors. managedTask(java.util.concurrent.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> java.util.concurrent.Callable<V>
ManagedExecutors. managedTask(java.util.concurrent.Callable<V> task, java.util.Map<java.lang.String,java.lang.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
.Constructors in jakarta.enterprise.concurrent with parameters of type ManagedTaskListener Constructor Description Adapter(ManagedTaskListener taskListener, java.util.Map<java.lang.String,java.lang.String> executionProperties, ManagedTask managedTask)
CallableAdapter(java.util.concurrent.Callable<V> task, java.util.Map<java.lang.String,java.lang.String> executionProperties, ManagedTaskListener taskListener)
RunnableAdapter(java.lang.Runnable task, java.util.Map<java.lang.String,java.lang.String> executionProperties, ManagedTaskListener taskListener)
-