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) |
getRawValues
public static final long serialVersionUID
@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
Copyright © 2024. All rights reserved.