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 Details

  • Method Details

    • getBroadcastInterval

      public java.time.Duration getBroadcastInterval()
      Returns the reachability broadcast interval.
      Returns:
      the reachability broadcast interval
    • setBroadcastInterval

      public MembershipConfig setBroadcastInterval​(java.time.Duration broadcastInterval)
      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

      public MembershipConfig setReachabilityThreshold​(int reachabilityThreshold)
      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

      public MembershipConfig setReachabilityTimeout​(java.time.Duration reachabilityTimeout)
      Sets the reachability failure timeout.
      Parameters:
      reachabilityTimeout - the reachability failure timeout
      Returns:
      the membership configuration