Sets the result of this Future to the given value unless this future has already
been set or has bee
Creates a FutureTask that will, upon running, execute the given Runnable, and
arrange that get will
Protected method invoked when this task transitions to stateisDone (whether
normally or via cancella
Gets the result of the task. PRE: task completed PRE: lock owned
Sets this Future to the result of its computation unless it has been cancelled.
Executes the computation without setting its result, and then resets this Future
to initial state, f
Marks the task as completed.
Causes this future to report an ExecutionException with the given throwable as
its cause, unless thi
Marks the task as failed.
Waits for the task to complete for timeout nanoseconds or throw TimeoutException
if still not comple