T
- The type this executable is expected to work on@FunctionalInterface public interface Executable<T>
Runnable
and Callable
, in that both are designed for classes
whose instances are potentially executed by another thread. success
or failure
.Executor
Modifier and Type | Method and Description |
---|---|
void |
execute(Promise<T> promise)
Execute the job.
Any response needs to be reported via either Promise,success(T) or Promise.failure(Throwable) . |
void execute(Promise<T> promise)
Promise,success(T)
or Promise.failure(Throwable)
. promise
- The promise to report the response toCopyright © 2015. All rights reserved.