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>
public class DoneFuture<T> extends Object implements RunnableFuture<T>
AFuturethat is always done and will just yield the object that was given at creation time.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDoneFuture(T payload)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)Tget()Tget(long timeout, TimeUnit unit)booleanisCancelled()booleanisDone()static <T> DoneFuture<T>of(T result)voidrun()
-
-
-
Constructor Detail
-
DoneFuture
protected DoneFuture(@Nullable T payload)
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceFuture<T>
-
run
public void run()
- Specified by:
runin interfaceRunnable- Specified by:
runin interfaceRunnableFuture<T>
-
of
public static <T> DoneFuture<T> of(@Nullable T result)
-
-