T
- result typepublic class FutureResult<T> extends Object implements Future<T>
Constructor and Description |
---|
FutureResult(T value) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public FutureResult(T value)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<T>
Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.