Package org.apache.bookkeeper.client
Interface AsyncCallback.ReadLastConfirmedAndEntryCallback
-
- All Known Implementing Classes:
SyncCallbackUtils.FutureReadLastConfirmedAndEntry
- Enclosing interface:
- AsyncCallback
@Public @Stable public static interface AsyncCallback.ReadLastConfirmedAndEntryCallback
Async Callback for long polling read request.- Since:
- 4.5
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
readLastConfirmedAndEntryComplete
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.- 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
-
-