public class NonBlockingFuture<T> extends CompletableFuture<T>
CompletableFuture.AsynchronousCompletionTask| Constructor and Description |
|---|
NonBlockingFuture() |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
T |
join() |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, 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 T join()
join in class CompletableFuture<T>public T get() throws InterruptedException, ExecutionException
get in interface Future<T>get in class CompletableFuture<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>get in class CompletableFuture<T>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2013–2016. All rights reserved.