Class SwimMembershipProtocolConfig

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

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

  • 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 java.time.Duration getGossipInterval()
      Returns the gossip interval.
      Returns:
      the gossip interval
    • setGossipInterval

      public SwimMembershipProtocolConfig setGossipInterval​(java.time.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 java.time.Duration getProbeInterval()
      Returns the probe interval.
      Returns:
      the probe interval
    • setProbeInterval

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

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

      public SwimMembershipProtocolConfig setProbeTimeout​(java.time.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 java.time.Duration getFailureTimeout()
      Returns the base failure timeout.
      Returns:
      the base failure timeout
    • setFailureTimeout

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

      public boolean isRetainTombstones()
      Returns whether tombstone retention is enabled.
      Returns:
      whether tombstone retention is enabled
    • setRetainTombstones

      public SwimMembershipProtocolConfig setRetainTombstones​(boolean retainTombstones)
      Sets whether to retain tombstones.
      Parameters:
      retainTombstones - whether to retain tombstones
      Returns:
      the membership protocol configuration
    • getType

      public GroupMembershipProtocol.Type getType()