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