List of usage examples for java.util.concurrent RunnableFuture isDone
boolean isDone();
From source file:org.apache.flink.runtime.state.StateBackendTestBase.java
private KeyGroupsStateHandle runSnapshot(RunnableFuture<KeyGroupsStateHandle> snapshotRunnableFuture) throws Exception { if (!snapshotRunnableFuture.isDone()) { Thread runner = new Thread(snapshotRunnableFuture); runner.start();//from w ww . ja v a2s . c om } return snapshotRunnableFuture.get(); }