T
- Type of Node/Task IDR
- Type of Node/Task resultpublic final class DefaultExecutionEngine<T extends Comparable<T>,R> extends Object implements ExecutionEngine<T,R>
Constructor and Description |
---|
DefaultExecutionEngine(ExecutorService executorService)
Creates the default instance given @ExecutorService, internally it uses @CompletionService
|
public DefaultExecutionEngine(ExecutorService executorService)
executorService
- public Future<ExecutionResult<T,R>> take() throws InterruptedException
take
in interface ExecutionEngine<T extends Comparable<T>,R>
InterruptedException
public void submit(Task<T,R> task)
submit
in interface ExecutionEngine<T extends Comparable<T>,R>
Copyright © 2016 Dexecutor. All rights reserved.