Package org.apache.bookkeeper.client
Class SyncCallbackUtils.FutureReadLastConfirmedAndEntry
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<LastConfirmedAndEntry>
-
- org.apache.bookkeeper.client.SyncCallbackUtils.FutureReadLastConfirmedAndEntry
-
- All Implemented Interfaces:
java.util.concurrent.CompletionStage<LastConfirmedAndEntry>
,java.util.concurrent.Future<LastConfirmedAndEntry>
,AsyncCallback.ReadLastConfirmedAndEntryCallback
- Enclosing class:
- SyncCallbackUtils
static class SyncCallbackUtils.FutureReadLastConfirmedAndEntry extends java.util.concurrent.CompletableFuture<LastConfirmedAndEntry> implements AsyncCallback.ReadLastConfirmedAndEntryCallback
-
-
Constructor Summary
Constructors Constructor Description FutureReadLastConfirmedAndEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readLastConfirmedAndEntryComplete(int rc, long lastConfirmed, LedgerEntry entry, java.lang.Object ctx)
Callback definition for bookie operation that allows reading the last add confirmed along with an entry within the last add confirmed range.-
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
-
readLastConfirmedAndEntryComplete
public void readLastConfirmedAndEntryComplete(int rc, long lastConfirmed, LedgerEntry entry, java.lang.Object ctx)
Description copied from interface:AsyncCallback.ReadLastConfirmedAndEntryCallback
Callback definition for bookie operation that allows reading the last add confirmed along with an entry within the last add confirmed range.- Specified by:
readLastConfirmedAndEntryComplete
in interfaceAsyncCallback.ReadLastConfirmedAndEntryCallback
- Parameters:
rc
- Return codelastConfirmed
- The entry id of the last confirmed write orINVALID_ENTRY_ID
if no entry has been confirmedentry
- The entry since the lastAddConfirmed entry that was specified when the request was initiatedctx
- context object
-
-