public class TransferTask<T> extends Object
Constructor and Description |
---|
TransferTask(Future<T> future) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel() |
T |
getResult()
Waits, if necessary, for the task to complete, and then retrieves its result.
|
boolean |
isCancelled() |
boolean |
isDone() |
public boolean isDone()
public boolean isCancelled()
public boolean cancel()
public T getResult()
CancellationException