Example usage for Java org.springframework.util.concurrent ListenableFuture fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addCallback(SuccessCallback super T> successCallback, FailureCallback failureCallback) Java 8 lambda-friendly alternative with success and failure callbacks. |
void | addCallback(ListenableFutureCallback super T> callback) Register the given ListenableFutureCallback . |
boolean | cancel(boolean mayInterruptIfRunning) Attempts to cancel execution of this task. |
V | get() Waits if necessary for the computation to complete, and then retrieves its result. |
V | get(long timeout, TimeUnit unit) Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available. |
boolean | isCancelled() Returns true if this task was cancelled before it completed normally. |
boolean | isDone() Returns true if this task completed. |