protected class ClusteringInterceptor.ClusteredGetAllFuture extends CompletableFuture<Void>
completeExceptionally(Throwable) must be called from synchronized block since we must not complete
the future (exceptionally) when we're accessing the context - if there was an exception and we would retry,
the context could be accessed concurrently by dangling handlers and retry execution (that does not synchronize
on the same future).
When completeExceptionally executes before the other responses processing, the future will be marked as done
and as soon as the other responses get into the synchronized block, these will check isDone and return.
If the response is being processed in sync block, running completeExceptionally and the related callbacks
will be blocked until we finish the processing.CompletableFuture.AsynchronousCompletionTask| Modifier and Type | Field and Description |
|---|---|
int |
counter |
| Constructor and Description |
|---|
ClusteredGetAllFuture(int counter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
completeExceptionally(Throwable ex) |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, exceptionally, get, get, 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 boolean completeExceptionally(Throwable ex)
completeExceptionally in class CompletableFuture<Void>Copyright © 2022 JBoss by Red Hat. All rights reserved.