Example usage for Java java.util.concurrent FutureTask fields, constructors, methods, implement or subclass
The text is from its open source code.
FutureTask(Callable Creates a FutureTask that will, upon running, execute the given Callable . | |
FutureTask(Runnable runnable, V result) Creates a FutureTask that will, upon running, execute the given Runnable , and arrange that get will return the given result on successful completion. |
boolean | cancel(boolean mayInterruptIfRunning) |
V | get() |
V | get(long timeout, TimeUnit unit) |
boolean | isCancelled() |
boolean | isDone() |
void | run() |