public class BootstrapDiscoveryBuilder extends NodeDiscoveryBuilder
| Constructor and Description |
|---|
BootstrapDiscoveryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
NodeDiscoveryProvider |
build() |
BootstrapDiscoveryBuilder |
withFailureThreshold(int failureThreshold)
Sets the phi accrual failure threshold.
|
BootstrapDiscoveryBuilder |
withFailureTimeout(Duration failureTimeout)
Sets the failure timeout to use prior to phi failure detectors being populated.
|
BootstrapDiscoveryBuilder |
withHeartbeatInterval(Duration heartbeatInterval)
Sets the failure detection heartbeat interval.
|
BootstrapDiscoveryBuilder |
withNodes(io.atomix.utils.net.Address... nodes)
Sets the bootstrap nodes.
|
BootstrapDiscoveryBuilder |
withNodes(Collection<Node> locations)
Sets the bootstrap nodes.
|
BootstrapDiscoveryBuilder |
withNodes(Node... nodes)
Sets the bootstrap nodes.
|
public BootstrapDiscoveryBuilder withNodes(io.atomix.utils.net.Address... nodes)
nodes - the bootstrap nodespublic BootstrapDiscoveryBuilder withNodes(Node... nodes)
nodes - the bootstrap nodespublic BootstrapDiscoveryBuilder withNodes(Collection<Node> locations)
locations - the bootstrap member locationspublic BootstrapDiscoveryBuilder withHeartbeatInterval(Duration heartbeatInterval)
heartbeatInterval - the failure detection heartbeat intervalpublic BootstrapDiscoveryBuilder withFailureThreshold(int failureThreshold)
failureThreshold - the phi accrual failure thresholdpublic BootstrapDiscoveryBuilder withFailureTimeout(Duration failureTimeout)
failureTimeout - the failure timeoutpublic NodeDiscoveryProvider build()
Copyright © 2013–2018. All rights reserved.