Package io.atomix.cluster.protocol
Class SwimMembershipProtocolBuilder
java.lang.Object
io.atomix.cluster.protocol.GroupMembershipProtocolBuilder
io.atomix.cluster.protocol.SwimMembershipProtocolBuilder
- All Implemented Interfaces:
Builder<GroupMembershipProtocol>
SWIM membership protocol builder.
-
Constructor Summary
ConstructorsConstructorDescriptionSwimMembershipProtocolBuilder(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionbuild()withBroadcastDisputes(boolean broadcastDisputes) Sets whether to broadcast disputes to all peers.withBroadcastUpdates(boolean broadcastUpdates) Sets whether to broadcast member updates to all peers.withFailureTimeout(Duration failureTimeout) Sets the failure timeout to use prior to phi failure detectors being populated.withGossipFanout(int gossipFanout) Sets the gossip fanout.withGossipInterval(Duration gossipInterval) Sets the gossip interval.withNotifySuspect(boolean notifySuspect) Sets whether to notify a suspect node on state changes.withProbeInterval(Duration probeInterval) Sets the probe interval.withProbeTimeout(Duration probeTimeout) Sets the probe timeoutwithSuspectProbes(int suspectProbes) Sets the number of probes to perform on suspect members.withSyncInterval(Duration syncInterval) Sets the sync interval to use to ensure a consistent view of a stable cluster within an upper bound.
-
Constructor Details
-
SwimMembershipProtocolBuilder
public SwimMembershipProtocolBuilder(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
-
Method Details
-
withBroadcastUpdates
Sets whether to broadcast member updates to all peers.- Parameters:
broadcastUpdates- whether to broadcast member updates to all peers- Returns:
- the protocol builder
-
withBroadcastDisputes
Sets whether to broadcast disputes to all peers.- Parameters:
broadcastDisputes- whether to broadcast disputes to all peers- Returns:
- the protocol builder
-
withNotifySuspect
Sets whether to notify a suspect node on state changes.- Parameters:
notifySuspect- whether to notify a suspect node on state changes- Returns:
- the protocol builder
-
withGossipInterval
Sets the gossip interval.- Parameters:
gossipInterval- the gossip interval- Returns:
- the protocol builder
-
withGossipFanout
Sets the gossip fanout.- Parameters:
gossipFanout- the gossip fanout- Returns:
- the protocol builder
-
withProbeInterval
Sets the probe interval.- Parameters:
probeInterval- the probe interval- Returns:
- the protocol builder
-
withProbeTimeout
Sets the probe timeout- Parameters:
probeTimeout-- Returns:
-
withSuspectProbes
Sets the number of probes to perform on suspect members.- Parameters:
suspectProbes- the number of probes to perform on suspect members- Returns:
- the protocol builder
-
withFailureTimeout
Sets the failure timeout to use prior to phi failure detectors being populated.- Parameters:
failureTimeout- the failure timeout- Returns:
- the protocol builder
-
withSyncInterval
Sets the sync interval to use to ensure a consistent view of a stable cluster within an upper bound.- Parameters:
syncInterval- the interval at which nodes should sync with another, random node- Returns:
- the protocol builder
-
build
-