public class RaftOptions extends Object implements Copiable<RaftOptions>
| Constructor and Description |
|---|
RaftOptions() |
| Modifier and Type | Method and Description |
|---|---|
RaftOptions |
copy()
Copy current object(deep-clone).
|
int |
getApplyBatch() |
int |
getDisruptorBufferSize() |
int |
getDisruptorPublishEventWaitTimeoutSecs() |
int |
getElectionHeartbeatFactor() |
int |
getMaxAppendBufferSize() |
int |
getMaxBodySize() |
int |
getMaxByteCountPerRpc() |
int |
getMaxElectionDelayMs() |
int |
getMaxEntriesSize() |
int |
getMaxReadIndexLag() |
int |
getMaxReplicatorInflightMsgs() |
ReadOnlyOption |
getReadOnlyOptions() |
boolean |
isEnableLogEntryChecksum() |
boolean |
isFileCheckHole() |
boolean |
isOpenStatistics() |
boolean |
isReplicatorPipeline() |
boolean |
isStartupOldStorage() |
boolean |
isStepDownWhenVoteTimedout() |
boolean |
isSync() |
boolean |
isSyncMeta() |
void |
setApplyBatch(int applyBatch) |
void |
setDisruptorBufferSize(int disruptorBufferSize) |
void |
setDisruptorPublishEventWaitTimeoutSecs(int disruptorPublishEventWaitTimeoutSecs) |
void |
setElectionHeartbeatFactor(int electionHeartbeatFactor) |
void |
setEnableLogEntryChecksum(boolean enableLogEntryChecksumValidation) |
void |
setFileCheckHole(boolean fileCheckHole) |
void |
setMaxAppendBufferSize(int maxAppendBufferSize) |
void |
setMaxBodySize(int maxBodySize) |
void |
setMaxByteCountPerRpc(int maxByteCountPerRpc) |
void |
setMaxElectionDelayMs(int maxElectionDelayMs) |
void |
setMaxEntriesSize(int maxEntriesSize) |
void |
setMaxReadIndexLag(int maxReadIndexLag) |
void |
setMaxReplicatorInflightMsgs(int maxReplicatorPiplelinePendingResponses) |
void |
setOpenStatistics(boolean openStatistics) |
void |
setReadOnlyOptions(ReadOnlyOption readOnlyOptions) |
void |
setReplicatorPipeline(boolean replicatorPipeline) |
void |
setStartupOldStorage(boolean startupOldStorage) |
void |
setStepDownWhenVoteTimedout(boolean stepDownWhenVoteTimeout) |
void |
setSync(boolean sync) |
void |
setSyncMeta(boolean syncMeta) |
String |
toString() |
public boolean isStepDownWhenVoteTimedout()
public void setStepDownWhenVoteTimedout(boolean stepDownWhenVoteTimeout)
public int getDisruptorPublishEventWaitTimeoutSecs()
public void setDisruptorPublishEventWaitTimeoutSecs(int disruptorPublishEventWaitTimeoutSecs)
public boolean isEnableLogEntryChecksum()
public void setEnableLogEntryChecksum(boolean enableLogEntryChecksumValidation)
public ReadOnlyOption getReadOnlyOptions()
public void setReadOnlyOptions(ReadOnlyOption readOnlyOptions)
public int getMaxReadIndexLag()
public void setMaxReadIndexLag(int maxReadIndexLag)
public boolean isReplicatorPipeline()
public void setReplicatorPipeline(boolean replicatorPipeline)
public int getMaxReplicatorInflightMsgs()
public void setMaxReplicatorInflightMsgs(int maxReplicatorPiplelinePendingResponses)
public int getDisruptorBufferSize()
public void setDisruptorBufferSize(int disruptorBufferSize)
public int getMaxByteCountPerRpc()
public void setMaxByteCountPerRpc(int maxByteCountPerRpc)
public boolean isFileCheckHole()
public void setFileCheckHole(boolean fileCheckHole)
public int getMaxEntriesSize()
public void setMaxEntriesSize(int maxEntriesSize)
public int getMaxBodySize()
public void setMaxBodySize(int maxBodySize)
public int getMaxAppendBufferSize()
public void setMaxAppendBufferSize(int maxAppendBufferSize)
public int getMaxElectionDelayMs()
public void setMaxElectionDelayMs(int maxElectionDelayMs)
public int getElectionHeartbeatFactor()
public void setElectionHeartbeatFactor(int electionHeartbeatFactor)
public int getApplyBatch()
public void setApplyBatch(int applyBatch)
public boolean isSync()
public void setSync(boolean sync)
public boolean isSyncMeta()
public void setSyncMeta(boolean syncMeta)
public boolean isOpenStatistics()
public void setOpenStatistics(boolean openStatistics)
public boolean isStartupOldStorage()
public void setStartupOldStorage(boolean startupOldStorage)
public RaftOptions copy()
Copiablecopy in interface Copiable<RaftOptions>Copyright © 2024. All rights reserved.