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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addComplete(int rc, LedgerHandle lh, long entryId, java.lang.Object ctx)
Callback to implement if latency information is not desired.default void
addCompleteWithLatency(int rc, LedgerHandle lh, long entryId, long qwcLatency, java.lang.Object ctx)
Callback declaration which additionally passes quorum write complete latency.
-
-
-
Method Detail
-
addComplete
void addComplete(int rc, LedgerHandle lh, long entryId, java.lang.Object ctx)
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, java.lang.Object ctx)
Callback declaration which additionally passes quorum write complete latency.- Specified by:
addCompleteWithLatency
in interfaceAsyncCallback.AddCallbackWithLatency
- Parameters:
rc
- return codelh
- ledger handleentryId
- entry identifierqwcLatency
- QuorumWriteComplete Latencyctx
- context object
-
-