Example usage for Java java.util.concurrent Future fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
Class> | getClass() Returns the runtime class of this Object . |
int | hashCode() Returns a hash code value for the object. |
boolean | isCancelled() Returns true if this task was cancelled before it completed normally. |
boolean | isDone() Returns true if this task completed. |
String | toString() Returns a string representation of the object. |