Package io.atomix.cluster
Class MembershipConfig
java.lang.Object
io.atomix.cluster.MembershipConfig
- All Implemented Interfaces:
io.atomix.utils.config.Config
public class MembershipConfig extends Object implements io.atomix.utils.config.Config
Cluster membership configuration.
-
Constructor Summary
Constructors Constructor Description MembershipConfig() -
Method Summary
Modifier and Type Method Description java.time.DurationgetBroadcastInterval()Returns the reachability broadcast interval.intgetReachabilityThreshold()Returns the reachability failure detection threshold.java.time.DurationgetReachabilityTimeout()Returns the reachability failure timeout.MembershipConfigsetBroadcastInterval(java.time.Duration broadcastInterval)Sets the reachability broadcast interval.MembershipConfigsetReachabilityThreshold(int reachabilityThreshold)Sets the reachability failure detection threshold.MembershipConfigsetReachabilityTimeout(java.time.Duration reachabilityTimeout)Sets the reachability failure timeout.
-
Constructor Details
-
MembershipConfig
public MembershipConfig()
-
-
Method Details
-
getBroadcastInterval
public java.time.Duration getBroadcastInterval()Returns the reachability broadcast interval.- Returns:
- the reachability broadcast interval
-
setBroadcastInterval
Sets the reachability broadcast interval.- Parameters:
broadcastInterval- the reachability broadcast interval- Returns:
- the membership configuration
-
getReachabilityThreshold
public int getReachabilityThreshold()Returns the reachability failure detection threshold.- Returns:
- the reachability failure detection threshold
-
setReachabilityThreshold
Sets the reachability failure detection threshold.- Parameters:
reachabilityThreshold- the reachability failure detection threshold- Returns:
- the membership configuration
-
getReachabilityTimeout
public java.time.Duration getReachabilityTimeout()Returns the reachability failure timeout.- Returns:
- the reachability failure timeout
-
setReachabilityTimeout
Sets the reachability failure timeout.- Parameters:
reachabilityTimeout- the reachability failure timeout- Returns:
- the membership configuration
-