Interface RetryAwareCompletionStage<E>
-
- All Superinterfaces:
CompletionStage<E>
- All Known Implementing Classes:
GetWithMetadataOperation
public interface RetryAwareCompletionStage<E> extends CompletionStage<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BooleanwasRetried()Returns whether this operation had to be retried on another server than the first one picked.-
Methods inherited from interface java.util.concurrent.CompletionStage
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsync
-
-
-
-
Method Detail
-
wasRetried
Boolean wasRetried()
Returns whether this operation had to be retried on another server than the first one picked.- Returns:
trueif the operation had to be retried on another server,falseif it completed without retry ornullif the operation is not yet complete.
-
-