public class SwarmRaftConfig extends DockerObject implements Serializable
RemoteApiVersion#VERSION_1_24| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
SwarmRaftConfig() |
| Modifier and Type | Method and Description |
|---|---|
int |
getElectionTick() |
int |
getHeartbeatTick() |
long |
getLogEntriesForSlowFollowers() |
long |
getSnapshotInterval() |
SwarmRaftConfig |
withElectionTick(int electionTick) |
SwarmRaftConfig |
withHeartbeatTick(int heartbeatTick) |
SwarmRaftConfig |
withLogEntriesForSlowFollowers(long logEntriesForSlowFollowers) |
SwarmRaftConfig |
withSnapshotInterval(long snapshotInterval) |
getRawValuespublic static final long serialVersionUID
@CheckForNull public long getLogEntriesForSlowFollowers()
logEntriesForSlowFollowerspublic SwarmRaftConfig withLogEntriesForSlowFollowers(long logEntriesForSlowFollowers)
logEntriesForSlowFollowers@CheckForNull public int getHeartbeatTick()
heartbeatTickpublic SwarmRaftConfig withHeartbeatTick(int heartbeatTick)
heartbeatTick@CheckForNull public long getSnapshotInterval()
snapshotIntervalpublic SwarmRaftConfig withSnapshotInterval(long snapshotInterval)
snapshotInterval@CheckForNull public int getElectionTick()
electionTickpublic SwarmRaftConfig withElectionTick(int electionTick)
electionTickCopyright © 2025. All rights reserved.