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 Type
    Method
    Description
    void
    addComplete(int rc, LedgerHandle lh, long entryId, Object ctx)
    Callback to implement if latency information is not desired.
    default void
    addCompleteWithLatency(int rc, LedgerHandle lh, long entryId, long qwcLatency, Object ctx)
    Callback declaration which additionally passes quorum write complete latency.
  • Method Details

    • addComplete

      void addComplete(int rc, LedgerHandle lh, long entryId, Object ctx)
      Callback to implement if latency information is not desired.
      Parameters:
      rc - return code
      lh - ledger handle
      entryId - entry identifier
      ctx - 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:
      addCompleteWithLatency in interface AsyncCallback.AddCallbackWithLatency
      Parameters:
      rc - return code
      lh - ledger handle
      entryId - entry identifier
      qwcLatency - QuorumWriteComplete Latency
      ctx - context object