Class SwimMembershipProtocolConfig

java.lang.Object
io.atomix.cluster.protocol.GroupMembershipProtocolConfig
io.atomix.cluster.protocol.SwimMembershipProtocolConfig
All Implemented Interfaces:
Config, TypedConfig<GroupMembershipProtocol.Type>

public class SwimMembershipProtocolConfig extends GroupMembershipProtocolConfig
SWIM membership protocol configuration.
  • Constructor Details

    • SwimMembershipProtocolConfig

      public SwimMembershipProtocolConfig()
  • Method Details

    • isBroadcastUpdates

      public boolean isBroadcastUpdates()
      Returns whether to broadcast member updates to all peers.
      Returns:
      whether to broadcast member updates to all peers
    • setBroadcastUpdates

      public SwimMembershipProtocolConfig setBroadcastUpdates(boolean broadcastUpdates)
      Sets whether to broadcast member updates to all peers.
      Parameters:
      broadcastUpdates - whether to broadcast member updates to all peers
      Returns:
      the protocol configuration
    • isBroadcastDisputes

      public boolean isBroadcastDisputes()
      Returns whether to broadcast disputes to all peers.
      Returns:
      whether to broadcast disputes to all peers
    • setBroadcastDisputes

      public SwimMembershipProtocolConfig setBroadcastDisputes(boolean broadcastDisputes)
      Sets whether to broadcast disputes to all peers.
      Parameters:
      broadcastDisputes - whether to broadcast disputes to all peers
      Returns:
      the protocol configuration
    • isNotifySuspect

      public boolean isNotifySuspect()
      Returns whether to notify a suspect node on state changes.
      Returns:
      whether to notify a suspect node on state changes
    • setNotifySuspect

      public SwimMembershipProtocolConfig setNotifySuspect(boolean notifySuspect)
      Sets whether to notify a suspect node on state changes.
      Parameters:
      notifySuspect - whether to notify a suspect node on state changes
      Returns:
      the protocol configuration
    • getGossipInterval

      public Duration getGossipInterval()
      Returns the gossip interval.
      Returns:
      the gossip interval
    • setGossipInterval

      public SwimMembershipProtocolConfig setGossipInterval(Duration gossipInterval)
      Sets the gossip interval.
      Parameters:
      gossipInterval - the gossip interval
      Returns:
      the protocol configuration
    • getGossipFanout

      public int getGossipFanout()
      Returns the gossip fanout.
      Returns:
      the gossip fanout
    • setGossipFanout

      public SwimMembershipProtocolConfig setGossipFanout(int gossipFanout)
      Sets the gossip fanout.
      Parameters:
      gossipFanout - the gossip fanout
      Returns:
      the protocol configuration
    • getProbeInterval

      public Duration getProbeInterval()
      Returns the probe interval.
      Returns:
      the probe interval
    • setProbeInterval

      public SwimMembershipProtocolConfig setProbeInterval(Duration probeInterval)
      Sets the probe interval.
      Parameters:
      probeInterval - the probe interval
      Returns:
      the membership configuration
    • getProbeTimeout

      public Duration getProbeTimeout()
      Returns the probe timeout.
      Returns:
      the probe timeout
    • setProbeTimeout

      public SwimMembershipProtocolConfig setProbeTimeout(Duration probeTimeout)
      Sets the probe timeout.
      Parameters:
      probeTimeout - the probe timeout
      Returns:
      the membership protocol configuration
    • getSuspectProbes

      public int getSuspectProbes()
      Returns the number of probes to perform on suspect members.
      Returns:
      the number of probes to perform on suspect members
    • setSuspectProbes

      public SwimMembershipProtocolConfig setSuspectProbes(int suspectProbes)
      Sets the number of probes to perform on suspect members.
      Parameters:
      suspectProbes - the number of probes to perform on suspect members
      Returns:
      the membership configuration
    • getFailureTimeout

      public Duration getFailureTimeout()
      Returns the base failure timeout.
      Returns:
      the base failure timeout
    • setFailureTimeout

      public SwimMembershipProtocolConfig setFailureTimeout(Duration failureTimeout)
      Sets the base failure timeout.
      Parameters:
      failureTimeout - the base failure timeout
      Returns:
      the group membership configuration
    • getSyncInterval

      public Duration getSyncInterval()
      Returns the sync interval.
      Returns:
      the sync interval
    • setSyncInterval

      public SwimMembershipProtocolConfig setSyncInterval(Duration syncInterval)
      Sets the sync interval.
      Parameters:
      syncInterval - the sync interval
      Returns:
      the membership configuration
    • getType

      public GroupMembershipProtocol.Type getType()