Package io.atomix.cluster.discovery
Class BootstrapDiscoveryConfig
java.lang.Object
io.atomix.cluster.discovery.NodeDiscoveryConfig
io.atomix.cluster.discovery.BootstrapDiscoveryConfig
- All Implemented Interfaces:
io.atomix.utils.config.Config,io.atomix.utils.config.TypedConfig<NodeDiscoveryProvider.Type>
public class BootstrapDiscoveryConfig extends NodeDiscoveryConfig
Bootstrap discovery configuration.
-
Constructor Summary
Constructors Constructor Description BootstrapDiscoveryConfig() -
Method Summary
Modifier and Type Method Description intgetFailureThreshold()Deprecated.java.time.DurationgetFailureTimeout()Deprecated.java.time.DurationgetHeartbeatInterval()Deprecated.Collection<NodeConfig>getNodes()Returns the configured bootstrap nodes.NodeDiscoveryProvider.TypegetType()BootstrapDiscoveryConfigsetFailureThreshold(int failureThreshold)Deprecated.BootstrapDiscoveryConfigsetFailureTimeout(java.time.Duration failureTimeout)Deprecated.BootstrapDiscoveryConfigsetHeartbeatInterval(java.time.Duration heartbeatInterval)Deprecated.BootstrapDiscoveryConfigsetNodes(Collection<NodeConfig> nodes)Sets the bootstrap nodes.
-
Constructor Details
-
BootstrapDiscoveryConfig
public BootstrapDiscoveryConfig()
-
-
Method Details
-
getType
-
getNodes
Returns the configured bootstrap nodes.- Returns:
- the configured bootstrap nodes
-
setNodes
Sets the bootstrap nodes.- Parameters:
nodes- the bootstrap nodes- Returns:
- the bootstrap provider configuration
-
getHeartbeatInterval
Deprecated.Returns the heartbeat interval.- Returns:
- the heartbeat interval
-
setHeartbeatInterval
@Deprecated public BootstrapDiscoveryConfig setHeartbeatInterval(java.time.Duration heartbeatInterval)Deprecated.Sets the heartbeat interval.- Parameters:
heartbeatInterval- the heartbeat 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
Deprecated.Returns the base failure timeout.- Returns:
- the base failure timeout
-
setFailureTimeout
Deprecated.Sets the base failure timeout.- Parameters:
failureTimeout- the base failure timeout- Returns:
- the group membership configuration
-