Package io.atomix.cluster.discovery
Class MulticastDiscoveryConfig
java.lang.Object
io.atomix.cluster.discovery.NodeDiscoveryConfig
io.atomix.cluster.discovery.MulticastDiscoveryConfig
- All Implemented Interfaces:
io.atomix.utils.config.Config,io.atomix.utils.config.TypedConfig<NodeDiscoveryProvider.Type>
public class MulticastDiscoveryConfig extends NodeDiscoveryConfig
Multicast discovery configuration.
-
Constructor Summary
Constructors Constructor Description MulticastDiscoveryConfig() -
Method Summary
Modifier and Type Method Description java.time.DurationgetBroadcastInterval()Returns the broadcast interval.intgetFailureThreshold()Deprecated.java.time.DurationgetFailureTimeout()Returns the base failure timeout.NodeDiscoveryProvider.TypegetType()MulticastDiscoveryConfigsetBroadcastInterval(java.time.Duration broadcastInterval)Sets the broadcast interval.MulticastDiscoveryConfigsetFailureThreshold(int failureThreshold)Deprecated.MulticastDiscoveryConfigsetFailureTimeout(java.time.Duration failureTimeout)Sets the base failure timeout.
-
Constructor Details
-
MulticastDiscoveryConfig
public MulticastDiscoveryConfig()
-
-
Method Details
-
getType
-
getBroadcastInterval
public java.time.Duration getBroadcastInterval()Returns the broadcast interval.- Returns:
- the broadcast interval
-
setBroadcastInterval
Sets the broadcast interval.- Parameters:
broadcastInterval- the broadcast interval- Returns:
- the group membership configuration
-
getFailureThreshold
Deprecated.Returns the failure detector threshold.- Returns:
- the failure detector threshold
-
setFailureThreshold
Deprecated.Sets the failure detector threshold.- Parameters:
failureThreshold- the failure detector threshold- Returns:
- the group membership configuration
-
getFailureTimeout
public java.time.Duration 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
-