Package org.apache.bookkeeper.client
Class SyncCallbackUtils.FutureReadLastConfirmed
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<java.lang.Long>
-
- org.apache.bookkeeper.client.SyncCallbackUtils.FutureReadLastConfirmed
-
- All Implemented Interfaces:
java.util.concurrent.CompletionStage<java.lang.Long>
,java.util.concurrent.Future<java.lang.Long>
,AsyncCallback.ReadLastConfirmedCallback
- Enclosing class:
- SyncCallbackUtils
static class SyncCallbackUtils.FutureReadLastConfirmed extends java.util.concurrent.CompletableFuture<java.lang.Long> implements AsyncCallback.ReadLastConfirmedCallback
-
-
Constructor Summary
Constructors Constructor Description FutureReadLastConfirmed()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readLastConfirmedComplete(int rc, long lastConfirmed, java.lang.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, completedFuture, completeExceptionally, 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, whenCompleteAsync
-
-
-
-
Method Detail
-
readLastConfirmedComplete
public void readLastConfirmedComplete(int rc, long lastConfirmed, java.lang.Object ctx)
Description copied from interface:AsyncCallback.ReadLastConfirmedCallback
Callback definition for bookie recover operations.- Specified by:
readLastConfirmedComplete
in interfaceAsyncCallback.ReadLastConfirmedCallback
- Parameters:
rc
- Return codelastConfirmed
- The entry id of the last confirmed write orINVALID_ENTRY_ID
if no entry has been confirmedctx
- context object
-
-