static class SyncCallbackUtils.FutureReadLastConfirmedAndEntry extends java.util.concurrent.CompletableFuture<LastConfirmedAndEntry> implements AsyncCallback.ReadLastConfirmedAndEntryCallback
Constructor and Description |
---|
FutureReadLastConfirmedAndEntry() |
Modifier and Type | Method and 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.
|
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
public void readLastConfirmedAndEntryComplete(int rc, long lastConfirmed, LedgerEntry entry, java.lang.Object ctx)
AsyncCallback.ReadLastConfirmedAndEntryCallback
readLastConfirmedAndEntryComplete
in interface AsyncCallback.ReadLastConfirmedAndEntryCallback
rc
- Return codelastConfirmed
- The entry id of the last confirmed write or
INVALID_ENTRY_ID
if no entry has been confirmedentry
- The entry since the lastAddConfirmed entry that was specified when the request
was initiatedctx
- context objectCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.