|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ExecutionContext
This is a Brooklyn extension to the Java Executor.
The "context" could, for example, be an Entity so that tasks executed
can be annotated as executing in that context.
| Method Summary | ||
|---|---|---|
Task<?> |
getCurrentTask()
Deprecated. in 0.5, use Tasks.current() |
|
Set<Task<?>> |
getTasks()
Get the tasks executed through this context (returning an immutable set). |
|
|
submit(Map<?,?> properties,
Callable<T> callable)
See ExecutionManager.submit(Map, TaskAdaptable) for properties that can be passed in. |
|
Task<?> |
submit(Map<?,?> properties,
Runnable runnable)
See ExecutionManager.submit(Map, TaskAdaptable) for properties that can be passed in. |
|
|
submit(Map<?,?> properties,
TaskAdaptable<T> task)
See ExecutionManager.submit(Map, TaskAdaptable) for properties that can be passed in. |
|
|
submit(TaskAdaptable<T> task)
See ExecutionManager.submit(Map, TaskAdaptable). |
|
| Methods inherited from interface java.util.concurrent.Executor |
|---|
execute |
| Method Detail |
|---|
Task<?> getCurrentTask()
Task being executed by this context, or null if not currently executing a task.
Set<Task<?>> getTasks()
Task<?> submit(Map<?,?> properties,
Runnable runnable)
ExecutionManager.submit(Map, TaskAdaptable) for properties that can be passed in.
<T> Task<T> submit(Map<?,?> properties,
Callable<T> callable)
ExecutionManager.submit(Map, TaskAdaptable) for properties that can be passed in.
<T> Task<T> submit(TaskAdaptable<T> task)
ExecutionManager.submit(Map, TaskAdaptable).
<T> Task<T> submit(Map<?,?> properties,
TaskAdaptable<T> task)
ExecutionManager.submit(Map, TaskAdaptable) for properties that can be passed in.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||