Interface OpenBuilder

    • Method Detail

      • withLedgerId

        OpenBuilder withLedgerId​(long ledgerId)
        Set the id of the ledger to be opened.
        Parameters:
        ledgerId -
        Returns:
        the builder itself
      • withRecovery

        OpenBuilder withRecovery​(boolean recovery)
        Define to open the ledger in recovery mode or in readonly mode. In recovery mode the ledger will be fenced and the writer of the ledger will be prevented from issuing other writes to the ledger. It defaults to 'false'
        Parameters:
        recovery - recovery mode
        Returns:
        the builder itself
      • withPassword

        OpenBuilder withPassword​(byte[] password)
        Sets the password to be used to open the ledger. It defauls to an empty password
        Parameters:
        password - the password to unlock the ledger
        Returns:
        the builder itself