Interface AsyncCallback.AddCallback

    • 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 code
        lh - ledger handle
        entryId - entry identifier
        ctx - 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 interface AsyncCallback.AddCallbackWithLatency
        Parameters:
        rc - return code
        lh - ledger handle
        entryId - entry identifier
        qwcLatency - QuorumWriteComplete Latency
        ctx - context object