public class RaftPartitionGroupConfig extends PartitionGroupConfig<RaftPartitionGroupConfig>
| Constructor and Description |
|---|
RaftPartitionGroupConfig() |
| Modifier and Type | Method and Description |
|---|---|
RaftCompactionConfig |
getCompactionConfig()
Returns the compaction configuration.
|
java.time.Duration |
getDefaultSessionTimeout()
Returns the default session timeout.
|
java.time.Duration |
getElectionTimeout()
Returns the Raft leader election timeout.
|
java.time.Duration |
getHeartbeatInterval()
Returns the heartbeat interval.
|
java.util.Set<java.lang.String> |
getMembers()
Returns the set of members in the partition group.
|
int |
getPartitionSize()
Returns the partition size.
|
RaftStateMachineFactory |
getStateMachineFactory()
Returns the raft state machine factory.
|
RaftStorageConfig |
getStorageConfig()
Returns the storage configuration.
|
PartitionGroup.Type |
getType() |
RaftPartitionGroupConfig |
setCompactionConfig(RaftCompactionConfig compactionConfig)
Sets the compaction configuration.
|
RaftPartitionGroupConfig |
setDefaultSessionTimeout(java.time.Duration defaultSessionTimeout)
Sets the default session timeout.
|
RaftPartitionGroupConfig |
setElectionTimeout(java.time.Duration electionTimeout)
Sets the leader election timeout.
|
RaftPartitionGroupConfig |
setHeartbeatInterval(java.time.Duration heartbeatInterval)
Sets the heartbeat interval.
|
RaftPartitionGroupConfig |
setMembers(java.util.Set<java.lang.String> members)
Sets the set of members in the partition group.
|
RaftPartitionGroupConfig |
setPartitionSize(int partitionSize)
Sets the partition size.
|
RaftPartitionGroupConfig |
setStorageConfig(RaftStorageConfig storageConfig)
Sets the storage configuration.
|
getName, getPartitions, setName, setPartitionspublic PartitionGroup.Type getType()
public java.util.Set<java.lang.String> getMembers()
public RaftPartitionGroupConfig setMembers(java.util.Set<java.lang.String> members)
members - the set of members in the partition grouppublic int getPartitionSize()
public RaftPartitionGroupConfig setPartitionSize(int partitionSize)
partitionSize - the partition sizepublic java.time.Duration getElectionTimeout()
public RaftPartitionGroupConfig setElectionTimeout(java.time.Duration electionTimeout)
electionTimeout - the leader election timeoutpublic java.time.Duration getHeartbeatInterval()
public RaftPartitionGroupConfig setHeartbeatInterval(java.time.Duration heartbeatInterval)
heartbeatInterval - the heartbeat intervalpublic java.time.Duration getDefaultSessionTimeout()
public RaftPartitionGroupConfig setDefaultSessionTimeout(java.time.Duration defaultSessionTimeout)
defaultSessionTimeout - the default session timeoutpublic RaftStorageConfig getStorageConfig()
public RaftPartitionGroupConfig setStorageConfig(RaftStorageConfig storageConfig)
storageConfig - the storage configurationpublic RaftCompactionConfig getCompactionConfig()
public RaftPartitionGroupConfig setCompactionConfig(RaftCompactionConfig compactionConfig)
compactionConfig - the compaction configurationpublic RaftStateMachineFactory getStateMachineFactory()
Copyright © 2013-2019. All Rights Reserved.