Class AutoValue_RaftConfig.Builder
- java.lang.Object
-
- com.spotify.docker.client.messages.swarm.RaftConfig.Builder
-
- com.spotify.docker.client.messages.swarm.AutoValue_RaftConfig.Builder
-
- Enclosing class:
- AutoValue_RaftConfig
static final class AutoValue_RaftConfig.Builder extends RaftConfig.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Integer
electionTick
private java.lang.Integer
heartbeatTick
private java.lang.Integer
keepOldSnapshots
private java.lang.Integer
logEntriesForSlowFollowers
private java.lang.Integer
snapshotInterval
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RaftConfig
build()
RaftConfig.Builder
electionTick(java.lang.Integer electionTick)
RaftConfig.Builder
heartbeatTick(java.lang.Integer heartbeatTick)
RaftConfig.Builder
keepOldSnapshots(java.lang.Integer keepOldSnapshots)
RaftConfig.Builder
logEntriesForSlowFollowers(java.lang.Integer logEntriesForSlowFollowers)
RaftConfig.Builder
snapshotInterval(java.lang.Integer snapshotInterval)
-
-
-
Field Detail
-
snapshotInterval
private java.lang.Integer snapshotInterval
-
keepOldSnapshots
private java.lang.Integer keepOldSnapshots
-
logEntriesForSlowFollowers
private java.lang.Integer logEntriesForSlowFollowers
-
electionTick
private java.lang.Integer electionTick
-
heartbeatTick
private java.lang.Integer heartbeatTick
-
-
Method Detail
-
snapshotInterval
public RaftConfig.Builder snapshotInterval(java.lang.Integer snapshotInterval)
- Specified by:
snapshotInterval
in classRaftConfig.Builder
-
keepOldSnapshots
public RaftConfig.Builder keepOldSnapshots(java.lang.Integer keepOldSnapshots)
- Specified by:
keepOldSnapshots
in classRaftConfig.Builder
-
logEntriesForSlowFollowers
public RaftConfig.Builder logEntriesForSlowFollowers(java.lang.Integer logEntriesForSlowFollowers)
- Specified by:
logEntriesForSlowFollowers
in classRaftConfig.Builder
-
electionTick
public RaftConfig.Builder electionTick(java.lang.Integer electionTick)
- Specified by:
electionTick
in classRaftConfig.Builder
-
heartbeatTick
public RaftConfig.Builder heartbeatTick(java.lang.Integer heartbeatTick)
- Specified by:
heartbeatTick
in classRaftConfig.Builder
-
build
public RaftConfig build()
- Specified by:
build
in classRaftConfig.Builder
-
-