Uses of Interface
jakarta.enterprise.concurrent.ManagedTaskListener
Packages that use ManagedTaskListener
Package
Description
Classes and interfaces that make up the Jakarta Concurrency specification.
-
Uses of ManagedTaskListener in jakarta.enterprise.concurrent
Methods in jakarta.enterprise.concurrent that return ManagedTaskListenerModifier and TypeMethodDescriptionManagedTask.getManagedTaskListener()TheManagedTaskListenerto receive notification of lifecycle events of this task.Methods in jakarta.enterprise.concurrent with parameters of type ManagedTaskListenerModifier and TypeMethodDescriptionstatic RunnableManagedExecutors.managedTask(Runnable task, ManagedTaskListener taskListener) Returns aRunnableobject that also implementsManagedTaskinterface so it can receive notification of lifecycle events with the providedManagedTaskListenerwhen the task is submitted to aManagedExecutorServiceor aManagedScheduledExecutorService.static RunnableManagedExecutors.managedTask(Runnable task, Map<String, String> executionProperties, ManagedTaskListener taskListener) Returns aRunnableobject that also implementsManagedTaskinterface so it can receive notification of lifecycle events with the providedManagedTaskListenerand to provide additional execution properties when the task is submitted to aManagedExecutorServiceor aManagedScheduledExecutorService.static <V> Callable<V> ManagedExecutors.managedTask(Callable<V> task, ManagedTaskListener taskListener) Returns aCallableobject that also implementsManagedTaskinterface so it can receive notification of lifecycle events with the providedManagedTaskListenerwhen the task is submitted to aManagedExecutorServiceor aManagedScheduledExecutorService.static <V> Callable<V> ManagedExecutors.managedTask(Callable<V> task, Map<String, String> executionProperties, ManagedTaskListener taskListener) Returns aCallableobject that also implementsManagedTaskinterface so it can receive notification of lifecycle events with the providedManagedTaskListenerand to provide additional execution properties when the task is submitted to aManagedExecutorServiceor aManagedScheduledExecutorService.