Interface LedgerIdGenerator

    • Method Detail

      • generateLedgerId

        void generateLedgerId​(BookkeeperInternalCallbacks.GenericCallback<java.lang.Long> cb)
        Generate a global unique ledger id.
        Parameters:
        cb - Callback when a new ledger id is generated, return code:
        • BKException.Code.OK if success
        • BKException.Code.ZKException when can't generate new ledger id