@InterfaceAudience.Public @InterfaceStability.Stable public static interface AsyncCallback.AddCallback extends AsyncCallback.AddCallbackWithLatency
| Modifier and Type | Method and 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.
|
void addComplete(int rc,
LedgerHandle lh,
long entryId,
java.lang.Object ctx)
rc - return codelh - ledger handleentryId - entry identifierctx - context objectdefault void addCompleteWithLatency(int rc,
LedgerHandle lh,
long entryId,
long qwcLatency,
java.lang.Object ctx)
addCompleteWithLatency in interface AsyncCallback.AddCallbackWithLatencyrc - return codelh - ledger handleentryId - entry identifierqwcLatency - QuorumWriteComplete Latencyctx - context objectCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.