Package io.atomix.cluster.protocol
Class SwimMembershipProtocolConfig
java.lang.Object
io.atomix.cluster.protocol.GroupMembershipProtocolConfig
io.atomix.cluster.protocol.SwimMembershipProtocolConfig
- All Implemented Interfaces:
Config,TypedConfig<GroupMembershipProtocol.Type>
SWIM membership protocol configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the base failure timeout.intReturns the gossip fanout.Returns the gossip interval.Returns the probe interval.Returns the probe timeout.intReturns the number of probes to perform on suspect members.Returns the sync interval.getType()booleanReturns whether to broadcast disputes to all peers.booleanReturns whether to broadcast member updates to all peers.booleanReturns whether to notify a suspect node on state changes.setBroadcastDisputes(boolean broadcastDisputes) Sets whether to broadcast disputes to all peers.setBroadcastUpdates(boolean broadcastUpdates) Sets whether to broadcast member updates to all peers.setFailureTimeout(Duration failureTimeout) Sets the base failure timeout.setGossipFanout(int gossipFanout) Sets the gossip fanout.setGossipInterval(Duration gossipInterval) Sets the gossip interval.setNotifySuspect(boolean notifySuspect) Sets whether to notify a suspect node on state changes.setProbeInterval(Duration probeInterval) Sets the probe interval.setProbeTimeout(Duration probeTimeout) Sets the probe timeout.setSuspectProbes(int suspectProbes) Sets the number of probes to perform on suspect members.setSyncInterval(Duration syncInterval) Sets the sync interval.
-
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
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
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
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
Returns the gossip interval.- Returns:
- the gossip interval
-
setGossipInterval
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
Sets the gossip fanout.- Parameters:
gossipFanout- the gossip fanout- Returns:
- the protocol configuration
-
getProbeInterval
Returns the probe interval.- Returns:
- the probe interval
-
setProbeInterval
Sets the probe interval.- Parameters:
probeInterval- the probe interval- Returns:
- the membership configuration
-
getProbeTimeout
Returns the probe timeout.- Returns:
- the probe timeout
-
setProbeTimeout
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
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
Returns the base failure timeout.- Returns:
- the base failure timeout
-
setFailureTimeout
Sets the base failure timeout.- Parameters:
failureTimeout- the base failure timeout- Returns:
- the group membership configuration
-
getSyncInterval
Returns the sync interval.- Returns:
- the sync interval
-
setSyncInterval
Sets the sync interval.- Parameters:
syncInterval- the sync interval- Returns:
- the membership configuration
-
getType
-