Package com.axemble.vdoc.sdk.viewer
Class ReadyFuture<T>
java.lang.Object
com.axemble.vdoc.sdk.viewer.ReadyFuture<T>
- Type Parameters:
T
- the result type to hold
- All Implemented Interfaces:
Future<T>
A ready future who hold the result
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
ReadyFuture
create a future with it's result- Parameters:
result
- the result
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<T>
-
isDone
public boolean isDone() -
get
-
get
-