@InterfaceAudience.LimitedPrivate @InterfaceStability.Unstable public class LedgerMetadataBuilder extends java.lang.Object
Constructor and Description |
---|
LedgerMetadataBuilder() |
public static LedgerMetadataBuilder create()
public static LedgerMetadataBuilder from(LedgerMetadata other)
public LedgerMetadataBuilder withMetadataFormatVersion(int version)
public LedgerMetadataBuilder withPassword(byte[] password)
public LedgerMetadataBuilder withDigestType(DigestType digestType)
public LedgerMetadataBuilder withEnsembleSize(int ensembleSize)
public LedgerMetadataBuilder withWriteQuorumSize(int writeQuorumSize)
public LedgerMetadataBuilder withAckQuorumSize(int ackQuorumSize)
public LedgerMetadataBuilder newEnsembleEntry(long firstEntry, java.util.List<org.apache.bookkeeper.net.BookieSocketAddress> ensemble)
public LedgerMetadataBuilder replaceEnsembleEntry(long firstEntry, java.util.List<org.apache.bookkeeper.net.BookieSocketAddress> ensemble)
public LedgerMetadataBuilder withInRecoveryState()
public LedgerMetadataBuilder withClosedState()
public LedgerMetadataBuilder withLastEntryId(long lastEntryId)
public LedgerMetadataBuilder withLength(long length)
public LedgerMetadataBuilder withCustomMetadata(java.util.Map<java.lang.String,byte[]> customMetadata)
public LedgerMetadataBuilder withCreationTime(long ctime)
public LedgerMetadataBuilder storingCreationTime(boolean storing)
public LedgerMetadataBuilder withCToken(long cToken)
public LedgerMetadata build()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.