public class SwarmRaftConfig
extends java.lang.Object
implements java.io.Serializable
RemoteApiVersion.VERSION_1_24
Modifier and Type | Field and Description |
---|---|
static java.lang.Long |
serialVersionUID |
Constructor and Description |
---|
SwarmRaftConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getElectionTick() |
int |
getHeartbeatTick() |
long |
getLogEntriesForSlowFollowers() |
long |
getSnapshotInterval() |
int |
hashCode() |
java.lang.String |
toString() |
SwarmRaftConfig |
withElectionTick(int electionTick) |
SwarmRaftConfig |
withHeartbeatTick(int heartbeatTick) |
SwarmRaftConfig |
withLogEntriesForSlowFollowers(long logEntriesForSlowFollowers) |
SwarmRaftConfig |
withSnapshotInterval(long snapshotInterval) |
@CheckForNull public long getLogEntriesForSlowFollowers()
logEntriesForSlowFollowers
public SwarmRaftConfig withLogEntriesForSlowFollowers(long logEntriesForSlowFollowers)
logEntriesForSlowFollowers
@CheckForNull public int getHeartbeatTick()
heartbeatTick
public SwarmRaftConfig withHeartbeatTick(int heartbeatTick)
heartbeatTick
@CheckForNull public long getSnapshotInterval()
snapshotInterval
public SwarmRaftConfig withSnapshotInterval(long snapshotInterval)
snapshotInterval
@CheckForNull public int getElectionTick()
electionTick
public SwarmRaftConfig withElectionTick(int electionTick)
electionTick
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2019. All Rights Reserved.