@InterfaceAudience.Public @InterfaceStability.Unstable public interface OpenBuilder extends OpBuilder<ReadHandle>
| Modifier and Type | Method and Description |
|---|---|
OpenBuilder |
withDigestType(DigestType digestType)
Sets the expected digest type used to check the contents of the ledger.
|
OpenBuilder |
withLedgerId(long ledgerId)
Set the id of the ledger to be opened.
|
OpenBuilder |
withPassword(byte[] password)
Sets the password to be used to open the ledger.
|
OpenBuilder |
withRecovery(boolean recovery)
Define to open the ledger in recovery mode or in readonly mode.
|
OpenBuilder withLedgerId(long ledgerId)
ledgerId - OpenBuilder withRecovery(boolean recovery)
recovery - recovery modeOpenBuilder withPassword(byte[] password)
password - the password to unlock the ledgerOpenBuilder withDigestType(DigestType digestType)
DigestType.CRC32.
If ClientConfiguration.setEnableDigestTypeAutodetection(boolean) is set to true this value is ignored
and the digest type is read directly from metadatadigestType - the type of digestCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.