Package org.apache.flink.runtime.state
Class DoneFuture<T>
java.lang.Object
org.apache.flink.runtime.state.DoneFuture<T>
- Type Parameters:
T- The type of object in thisFuture.
- All Implemented Interfaces:
Runnable,Future<T>,RunnableFuture<T>
A
Future that is always done and will just yield the object that was given at creation
time.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DoneFuture
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
isDone
public boolean isDone() -
get
-
get
-
run
public void run()- Specified by:
runin interfaceRunnable- Specified by:
runin interfaceRunnableFuture<T>
-
of
-