Package org.apache.bookkeeper.client
Class SyncCallbackUtils.FutureReadLastConfirmed
java.lang.Object
java.util.concurrent.CompletableFuture<Long>
org.apache.bookkeeper.client.SyncCallbackUtils.FutureReadLastConfirmed
- All Implemented Interfaces:
CompletionStage<Long>,Future<Long>,AsyncCallback.ReadLastConfirmedCallback
- Enclosing class:
- SyncCallbackUtils
static class SyncCallbackUtils.FutureReadLastConfirmed
extends CompletableFuture<Long>
implements AsyncCallback.ReadLastConfirmedCallback
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreadLastConfirmedComplete(int rc, long lastConfirmed, Object ctx) Callback definition for bookie recover operations.Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, 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, whenCompleteAsync
-
Constructor Details
-
FutureReadLastConfirmed
FutureReadLastConfirmed()
-
-
Method Details
-
readLastConfirmedComplete
Description copied from interface:AsyncCallback.ReadLastConfirmedCallbackCallback definition for bookie recover operations.- Specified by:
readLastConfirmedCompletein interfaceAsyncCallback.ReadLastConfirmedCallback- Parameters:
rc- Return codelastConfirmed- The entry id of the last confirmed write orINVALID_ENTRY_IDif no entry has been confirmedctx- context object
-