public class ExecutionManager extends Object
| Constructor and Description |
|---|
ExecutionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable runnable)
Executes the given command at some time in the future.
|
void |
shutdown()
Shuts down the executor service
|
<T> Future<T> |
submit(Callable<T> callable)
Submits a value-returning task for execution and returns a Future
representing the pending results of the task.
|
<T> Future<T> |
submit(Runnable runnable,
T result)
Submits a Runnable task for execution and returns a Future representing
that task.
|
public <T> Future<T> submit(Callable<T> callable)
T - JavaDoc requires this (just ignore it)callable - The callable to submitpublic <T> Future<T> submit(Runnable runnable, T result)
T - JavaDoc requires this (just ignore it)runnable - the task to submitresult - the result to returnpublic void execute(Runnable runnable)
runnable - the runnable taskpublic void shutdown()
Copyright © 2016. All rights reserved.