public interface ExecutionContext
extends java.util.concurrent.Executor
Executor
.
The "context" could, for example, be an Entity
so that tasks executed
can be annotated as executing in that context.Modifier and Type | Method and Description |
---|---|
java.util.Set<Task<?>> |
getTasks()
Get the tasks executed through this context (returning an immutable set).
|
boolean |
isShutdown() |
<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)
See
ExecutionManager.submit(Map, TaskAdaptable) for properties that can be passed in. |
<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)
|
java.util.Set<Task<?>> getTasks()
Task<?> submit(java.util.Map<?,?> properties, java.lang.Runnable runnable)
ExecutionManager.submit(Map, TaskAdaptable)
for properties that can be passed in.<T> Task<T> submit(java.util.Map<?,?> properties, java.util.concurrent.Callable<T> callable)
ExecutionManager.submit(Map, TaskAdaptable)
for properties that can be passed in.Task<?> submit(java.lang.Runnable runnable)
<T> Task<T> submit(java.util.concurrent.Callable<T> callable)
<T> Task<T> submit(TaskAdaptable<T> task)
<T> Task<T> submit(java.util.Map<?,?> properties, TaskAdaptable<T> task)
ExecutionManager.submit(Map, TaskAdaptable)
for properties that can be passed in.boolean isShutdown()