Example usage for Java com.google.common.util.concurrent ListenableScheduledFuture fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addListener(Runnable listener, Executor executor) Registers a listener to be Executor#execute(Runnable) run on the given executor. |
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. |
boolean | isCancelled() Returns true if this task was cancelled before it completed normally. |
boolean | isDone() Returns true if this task completed. |