| Constructor and Description |
|---|
ExecutorImpl(ExecutorService executorService)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T> Promise<T> |
async(Callable<T> task)
Async method
|
<T> T |
await(Promise<T> promise)
Await method
|
<T> T |
await(Promise<T> promise,
long duration,
TimeUnit timeUnit)
Await method for a given duration
|
public ExecutorImpl(ExecutorService executorService)
executorService - The executor service used for asynchronous operationpublic <T> Promise<T> async(Callable<T> task)
Executorpublic <T> T await(Promise<T> promise)
Executorpublic <T> T await(Promise<T> promise, long duration, TimeUnit timeUnit) throws TimeoutException
Executorawait in interface Executorpromise - The promise to await forTimeoutException - raised when no result is available after a given delayCopyright © 2017. All rights reserved.