Package org.apache.bookkeeper.client
Interface AsyncCallback.AddCallback
- All Superinterfaces:
AsyncCallback.AddCallbackWithLatency
- All Known Implementing Classes:
LedgerRecoveryOp,SyncCallbackUtils.SyncAddCallback
- Enclosing interface:
- AsyncCallback
@Public
@Stable
public static interface AsyncCallback.AddCallback
extends AsyncCallback.AddCallbackWithLatency
Async Callback for adding entries to ledgers.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddComplete(int rc, LedgerHandle lh, long entryId, Object ctx) Callback to implement if latency information is not desired.default voidaddCompleteWithLatency(int rc, LedgerHandle lh, long entryId, long qwcLatency, Object ctx) Callback declaration which additionally passes quorum write complete latency.
-
Method Details
-
addComplete
Callback to implement if latency information is not desired.- Parameters:
rc- return codelh- ledger handleentryId- entry identifierctx- context object
-
addCompleteWithLatency
default void addCompleteWithLatency(int rc, LedgerHandle lh, long entryId, long qwcLatency, Object ctx) Callback declaration which additionally passes quorum write complete latency.- Specified by:
addCompleteWithLatencyin interfaceAsyncCallback.AddCallbackWithLatency- Parameters:
rc- return codelh- ledger handleentryId- entry identifierqwcLatency- QuorumWriteComplete Latencyctx- context object
-