public class BootstrapDiscoveryBuilder extends NodeDiscoveryBuilder
| Constructor and Description |
|---|
BootstrapDiscoveryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
NodeDiscoveryProvider |
build()
Builds the object.
|
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(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(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()
BuilderThe returned object may be a new instance of the built class or a recycled instance, depending on the semantics of the builder implementation. Users should never assume that a builder allocates a new instance.
Copyright © 2013–2018. All rights reserved.