Package javax.enterprise.concurrent
Class ManagedExecutors
- java.lang.Object
-
- javax.enterprise.concurrent.ManagedExecutors
-
public class ManagedExecutors extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classManagedExecutors.AbstractManagedTask(package private) static classManagedExecutors.ManagedCallable<V>(package private) static classManagedExecutors.ManagedRunnable
-
Constructor Summary
Constructors Modifier Constructor Description privateManagedExecutors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisCurrentThreadShutdown()static java.lang.RunnablemanagedTask(java.lang.Runnable task, java.util.Map<java.lang.String,java.lang.String> executionProperties, ManagedTaskListener taskListener)static java.lang.RunnablemanagedTask(java.lang.Runnable task, ManagedTaskListener taskListener)static <V> java.util.concurrent.Callable<V>managedTask(java.util.concurrent.Callable<V> task, java.util.Map<java.lang.String,java.lang.String> executionProperties, ManagedTaskListener taskListener)static <V> java.util.concurrent.Callable<V>managedTask(java.util.concurrent.Callable<V> task, ManagedTaskListener taskListener)
-
-
-
Method Detail
-
isCurrentThreadShutdown
public static boolean isCurrentThreadShutdown()
-
managedTask
public static <V> java.util.concurrent.Callable<V> managedTask(java.util.concurrent.Callable<V> task, ManagedTaskListener taskListener) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
managedTask
public static <V> java.util.concurrent.Callable<V> managedTask(java.util.concurrent.Callable<V> task, java.util.Map<java.lang.String,java.lang.String> executionProperties, ManagedTaskListener taskListener) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
managedTask
public static java.lang.Runnable managedTask(java.lang.Runnable task, ManagedTaskListener taskListener) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
managedTask
public static java.lang.Runnable managedTask(java.lang.Runnable task, java.util.Map<java.lang.String,java.lang.String> executionProperties, ManagedTaskListener taskListener) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
-