Package | Description |
---|---|
javax.enterprise.concurrent |
Classes and interfaces for concurrent programming in Java EE™ applications.
|
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 © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.