public static interface FutureUtils.ConjunctFuture<T> extends CompletableFuture<T>
The advantage of using the ConjunctFuture over chaining all the futures (such as via
Future.thenCombine(Future, BiFunction)
) is that ConjunctFuture also tracks how
many of the Futures are already complete.
Modifier and Type | Method and Description |
---|---|
int |
getNumFuturesCompleted()
Gets the number of Futures in the conjunction that are already complete.
|
int |
getNumFuturesTotal()
Gets the total number of Futures in the conjunction.
|
complete, completeExceptionally
cancel, exceptionally, exceptionallyAsync, get, get, getNow, handle, handleAsync, isDone, thenAccept, thenAcceptAsync, thenApply, thenApplyAsync, thenCombine, thenCombineAsync, thenCompose, thenComposeAsync
int getNumFuturesTotal()
int getNumFuturesCompleted()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.