private class MapReduceTask.MapReduceTaskFuture<R> extends
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.Callable<R> |
call |
private boolean |
cancelled |
private boolean |
done |
Constructor and Description |
---|
MapReduceTask.MapReduceTaskFuture(java.util.concurrent.Callable<R> call) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
R |
get() |
boolean |
isCancelled() |
boolean |
isDone() |
private final java.util.concurrent.Callable<R> call
private volatile boolean cancelled
private volatile boolean done
public MapReduceTask.MapReduceTaskFuture(java.util.concurrent.Callable<R> call)
public R get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
public boolean isDone()