Package com.palantir.atlasdb.config
Class LeaderConfig
- java.lang.Object
-
- com.palantir.atlasdb.config.LeaderConfig
-
@Immutable public abstract class LeaderConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description LeaderConfig()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description File
acceptorLogDir()
protected void
check()
java.time.Duration
leaderAddressCacheTtl()
java.time.Duration
leaderPingResponseWait()
abstract @Size(min=1) Set<String>
leaders()
File
learnerLogDir()
abstract String
localServer()
java.time.Duration
pingRate()
abstract int
quorumSize()
java.time.Duration
randomWaitBeforeProposingLeadership()
abstract Optional<com.palantir.conjure.java.api.config.ssl.SslConfiguration>
sslConfiguration()
-
-
-
Method Detail
-
quorumSize
public abstract int quorumSize()
-
learnerLogDir
@Default public File learnerLogDir()
-
acceptorLogDir
@Default public File acceptorLogDir()
-
localServer
public abstract String localServer()
-
sslConfiguration
public abstract Optional<com.palantir.conjure.java.api.config.ssl.SslConfiguration> sslConfiguration()
-
pingRate
@Derived @Auxiliary public java.time.Duration pingRate()
-
randomWaitBeforeProposingLeadership
@Derived @Auxiliary public java.time.Duration randomWaitBeforeProposingLeadership()
-
leaderPingResponseWait
@Derived @Auxiliary public java.time.Duration leaderPingResponseWait()
-
leaderAddressCacheTtl
@Default public java.time.Duration leaderAddressCacheTtl()
-
check
@Check protected final void check()
-
-