Package io.atomix.cluster.discovery
Class BootstrapDiscoveryBuilder
java.lang.Object
io.atomix.cluster.discovery.NodeDiscoveryBuilder
io.atomix.cluster.discovery.BootstrapDiscoveryBuilder
- All Implemented Interfaces:
io.atomix.utils.Builder<NodeDiscoveryProvider>
public class BootstrapDiscoveryBuilder extends NodeDiscoveryBuilder
Bootstrap discovery builder.
-
Constructor Summary
Constructors Constructor Description BootstrapDiscoveryBuilder() -
Method Summary
Modifier and Type Method Description NodeDiscoveryProviderbuild()BootstrapDiscoveryBuilderwithFailureThreshold(int failureThreshold)Sets the phi accrual failure threshold.BootstrapDiscoveryBuilderwithFailureTimeout(java.time.Duration failureTimeout)Sets the failure timeout to use prior to phi failure detectors being populated.BootstrapDiscoveryBuilderwithHeartbeatInterval(java.time.Duration heartbeatInterval)Sets the failure detection heartbeat interval.BootstrapDiscoveryBuilderwithNodes(Node... nodes)Sets the bootstrap nodes.BootstrapDiscoveryBuilderwithNodes(io.atomix.utils.net.Address... nodes)Sets the bootstrap nodes.BootstrapDiscoveryBuilderwithNodes(Collection<Node> locations)Sets the bootstrap nodes.
-
Constructor Details
-
BootstrapDiscoveryBuilder
public BootstrapDiscoveryBuilder()
-
-
Method Details
-
withNodes
Sets the bootstrap nodes.- Parameters:
nodes- the bootstrap nodes- Returns:
- the location provider builder
-
withNodes
Sets the bootstrap nodes.- Parameters:
nodes- the bootstrap nodes- Returns:
- the location provider builder
-
withNodes
Sets the bootstrap nodes.- Parameters:
locations- the bootstrap member locations- Returns:
- the location provider builder
-
withHeartbeatInterval
Sets the failure detection heartbeat interval.- Parameters:
heartbeatInterval- the failure detection heartbeat 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
-