public class LogStreamBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.agrona.concurrent.status.AtomicLongPosition |
commitPosition |
protected boolean |
deleteOnClose |
protected float |
deviation |
protected int |
indexBlockSize |
protected int |
initialLogSegmentId |
protected String |
logDirectory |
protected String |
logName |
protected String |
logRootPath |
protected int |
logSegmentSize |
protected java.util.function.Function<FsLogStorage,FsLogStorage> |
logStorageStubber |
protected int |
maxAppendBlockSize |
protected ActorConditions |
onCommitPositionUpdatedConditions |
protected int |
partitionId |
protected int |
readBlockSize |
protected ServiceContainer |
serviceContainer |
protected java.time.Duration |
snapshotPeriod |
protected SnapshotStorage |
snapshotStorage |
protected int |
writeBufferSize |
| Constructor and Description |
|---|
LogStreamBuilder(int partitionId) |
protected final int partitionId
protected ServiceContainer serviceContainer
protected String logName
protected String logRootPath
protected String logDirectory
protected int initialLogSegmentId
protected boolean deleteOnClose
protected int maxAppendBlockSize
protected int writeBufferSize
protected int logSegmentSize
protected int indexBlockSize
protected float deviation
protected int readBlockSize
protected java.time.Duration snapshotPeriod
protected SnapshotStorage snapshotStorage
protected final org.agrona.concurrent.status.AtomicLongPosition commitPosition
protected final ActorConditions onCommitPositionUpdatedConditions
protected java.util.function.Function<FsLogStorage,FsLogStorage> logStorageStubber
public LogStreamBuilder serviceContainer(ServiceContainer serviceContainer)
public LogStreamBuilder logName(String logName)
public LogStreamBuilder logRootPath(String logRootPath)
public LogStreamBuilder logDirectory(String logDir)
public LogStreamBuilder writeBufferSize(int writeBufferSize)
public LogStreamBuilder maxAppendBlockSize(int maxAppendBlockSize)
public LogStreamBuilder initialLogSegmentId(int logFragmentId)
public LogStreamBuilder logSegmentSize(int logSegmentSize)
public LogStreamBuilder deleteOnClose(boolean deleteOnClose)
public LogStreamBuilder indexBlockSize(int indexBlockSize)
public LogStreamBuilder deviation(float deviation)
public LogStreamBuilder snapshotStorage(SnapshotStorage snapshotStorage)
public LogStreamBuilder snapshotPeriod(java.time.Duration snapshotPeriod)
public LogStreamBuilder readBlockSize(int readBlockSize)
public LogStreamBuilder logStorageStubber(java.util.function.Function<FsLogStorage,FsLogStorage> logStorageStubber)
public String getLogName()
public String getLogDirectory()
public int getPartitionId()
public int getMaxAppendBlockSize()
public int getIndexBlockSize()
public int getReadBlockSize()
public java.time.Duration getSnapshotPeriod()
public SnapshotStorage getSnapshotStorage()
public float getDeviation()
public ServiceContainer getServiceContainer()
public org.agrona.concurrent.status.AtomicLongPosition getCommitPosition()
public int getWriteBufferSize()
public ActorConditions getOnCommitPositionUpdatedConditions()
public ServiceName<LogStream> buildWith(CompositeServiceBuilder composite)
public ActorFuture<LogStream> build()
Copyright © 2017–2018 camunda services GmbH. All rights reserved.