Package org.apache.bookkeeper.client
Class LedgerMetadataBuilder
java.lang.Object
org.apache.bookkeeper.client.LedgerMetadataBuilder
Builder for building LedgerMetadata objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()static LedgerMetadataBuildercreate()static LedgerMetadataBuilderfrom(LedgerMetadata other) newEnsembleEntry(long firstEntry, List<BookieId> ensemble) replaceEnsembleEntry(long firstEntry, List<BookieId> ensemble) storingCreationTime(boolean storing) withAckQuorumSize(int ackQuorumSize) withCreationTime(long ctime) withCToken(long cToken) withCustomMetadata(Map<String, byte[]> customMetadata) withDigestType(DigestType digestType) withEnsembleSize(int ensembleSize) withId(long ledgerId) withLastEntryId(long lastEntryId) withLength(long length) withMetadataFormatVersion(int version) withPassword(byte[] password) withWriteQuorumSize(int writeQuorumSize)
-
Constructor Details
-
LedgerMetadataBuilder
public LedgerMetadataBuilder()
-
-
Method Details
-
create
-
from
-
withId
-
withMetadataFormatVersion
-
withPassword
-
withDigestType
-
withEnsembleSize
-
withWriteQuorumSize
-
withAckQuorumSize
-
newEnsembleEntry
-
replaceEnsembleEntry
-
withInRecoveryState
-
withClosedState
-
withLastEntryId
-
withLength
-
withCustomMetadata
-
withCreationTime
-
storingCreationTime
-
withCToken
-
build
-