public abstract class AbstractExecutionContext extends java.lang.Object implements ExecutionContext
Constructor and Description |
---|
AbstractExecutionContext() |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable r)
Provided for compatibility
Submit is preferred if a handle on the resulting Task is desired (although a task can be passed in so this is not always necessary)
|
<T> Task<T> |
submit(java.util.concurrent.Callable<T> callable)
{@link ExecutionManager#submit(Callable)
|
<T> Task<T> |
submit(java.util.Map<?,?> properties,
java.util.concurrent.Callable<T> callable)
See
ExecutionManager.submit(Map, TaskAdaptable) for properties that can be passed in. |
Task<?> |
submit(java.util.Map<?,?> properties,
java.lang.Runnable runnable)
Submits the given runnable/callable/task for execution (in a separate thread);
supported keys in the map include: tags (add'l tags to put on the resulting task),
description (string), and others as described in the reference below
|
<T> Task<T> |
submit(java.util.Map<?,?> properties,
TaskAdaptable<T> task)
See
ExecutionManager.submit(Map, TaskAdaptable) for properties that can be passed in. |
Task<?> |
submit(java.lang.Runnable runnable)
{@link ExecutionManager#submit(Runnable)
|
<T> Task<T> |
submit(TaskAdaptable<T> task)
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTasks, isShutdown
public Task<?> submit(java.util.Map<?,?> properties, java.lang.Runnable runnable)
submit
in interface ExecutionContext
ExecutionManager#submit(Map, Task)
public Task<?> submit(java.lang.Runnable runnable)
ExecutionContext
submit
in interface ExecutionContext
submit(Map, Runnable)
public <T> Task<T> submit(java.util.concurrent.Callable<T> callable)
ExecutionContext
submit
in interface ExecutionContext
submit(Map, Runnable)
public <T> Task<T> submit(java.util.Map<?,?> properties, java.util.concurrent.Callable<T> callable)
ExecutionContext
ExecutionManager.submit(Map, TaskAdaptable)
for properties that can be passed in.submit
in interface ExecutionContext
submit(Map, Runnable)
public <T> Task<T> submit(TaskAdaptable<T> task)
ExecutionContext
submit
in interface ExecutionContext
submit(Map, Runnable)
public <T> Task<T> submit(java.util.Map<?,?> properties, TaskAdaptable<T> task)
ExecutionContext
ExecutionManager.submit(Map, TaskAdaptable)
for properties that can be passed in.submit
in interface ExecutionContext
submit(Map, Runnable)
public void execute(java.lang.Runnable r)
execute
in interface java.util.concurrent.Executor
submit(Map, Runnable)