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(java.time.Duration failureTimeout)
Sets the failure timeout to use prior to phi failure detectors being populated.
|
BootstrapDiscoveryBuilder |
withHeartbeatInterval(java.time.Duration heartbeatInterval)
Sets the failure detection heartbeat interval.
|
BootstrapDiscoveryBuilder |
withNodes(Address... nodes)
Sets the bootstrap nodes.
|
BootstrapDiscoveryBuilder |
withNodes(java.util.Collection<Node> locations)
Sets the bootstrap nodes.
|
BootstrapDiscoveryBuilder |
withNodes(Node... nodes)
Sets the bootstrap nodes.
|
public BootstrapDiscoveryBuilder withNodes(Address... nodes)
nodes - the bootstrap nodespublic BootstrapDiscoveryBuilder withNodes(Node... nodes)
nodes - the bootstrap nodespublic BootstrapDiscoveryBuilder withNodes(java.util.Collection<Node> locations)
locations - the bootstrap member locationspublic BootstrapDiscoveryBuilder withHeartbeatInterval(java.time.Duration heartbeatInterval)
heartbeatInterval - the failure detection heartbeat intervalpublic BootstrapDiscoveryBuilder withFailureThreshold(int failureThreshold)
failureThreshold - the phi accrual failure thresholdpublic BootstrapDiscoveryBuilder withFailureTimeout(java.time.Duration failureTimeout)
failureTimeout - the failure timeoutpublic NodeDiscoveryProvider build()
Copyright © 2013-2019. All Rights Reserved.