T - R - public interface ExecutionEngine<T,R>
| Modifier and Type | Method and Description |
|---|---|
boolean |
isShutdown()
Returns true if this executor has been shut down.
|
Future<Node<T,R>> |
submit(Callable<Node<T,R>> task)
Submits a value-returning task for execution and returns a Future
representing the pending results of the task.
|
Future<Node<T,R>> |
take()
Retrieves and removes the Future representing the next
completed task, waiting if none are yet present.
|
Future<Node<T,R>> submit(Callable<Node<T,R>> task)
task - the task to submitRejectedExecutionException - if the task cannot be
scheduled for executionNullPointerException - if the task is nullFuture<Node<T,R>> take() throws InterruptedException
InterruptedException - if interrupted while waitingboolean isShutdown()
Copyright © 2016 Dexecutor. All rights reserved.