public class WorkerExecutorFuture
extends java.util.concurrent.CompletableFuture<java.lang.Void>
CompletableFuture that calls
WorkerExecutorHelper.await() on every call to get() or
get(long, TimeUnit)| Constructor and Description |
|---|
WorkerExecutorFuture(WorkerExecutorHelper workerExecutor) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Void |
get() |
java.lang.Void |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsyncpublic WorkerExecutorFuture(WorkerExecutorHelper workerExecutor)
public java.lang.Void get()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
get in interface java.util.concurrent.Future<java.lang.Void>get in class java.util.concurrent.CompletableFuture<java.lang.Void>java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionpublic java.lang.Void get(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException,
java.util.concurrent.TimeoutException
get in interface java.util.concurrent.Future<java.lang.Void>get in class java.util.concurrent.CompletableFuture<java.lang.Void>java.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionjava.util.concurrent.TimeoutException