Package io.atomix.cluster.discovery
Class MulticastDiscoveryBuilder
java.lang.Object
io.atomix.cluster.discovery.NodeDiscoveryBuilder
io.atomix.cluster.discovery.MulticastDiscoveryBuilder
- All Implemented Interfaces:
io.atomix.utils.Builder<NodeDiscoveryProvider>
public class MulticastDiscoveryBuilder extends NodeDiscoveryBuilder
Multicast discovery provider builder.
-
Method Summary
Modifier and Type Method Description NodeDiscoveryProviderbuild()MulticastDiscoveryBuilderwithBroadcastInterval(java.time.Duration broadcastInterval)Sets the broadcast interval.MulticastDiscoveryBuilderwithFailureThreshold(int failureThreshold)Sets the phi accrual failure threshold.MulticastDiscoveryBuilderwithFailureTimeout(java.time.Duration failureTimeout)Sets the failure timeout to use prior to phi failure detectors being populated.
-
Method Details
-
withBroadcastInterval
Sets the broadcast interval.- Parameters:
broadcastInterval- the broadcast interval- Returns:
- the location provider builder
-
withFailureThreshold
Sets the phi accrual failure threshold.- Parameters:
failureThreshold- the phi accrual failure threshold- Returns:
- the location provider builder
-
withFailureTimeout
Sets the failure timeout to use prior to phi failure detectors being populated.- Parameters:
failureTimeout- the failure timeout- Returns:
- the location provider builder
-
build
-