public class BootstrapDiscoveryConfig extends NodeDiscoveryConfig
| Constructor and Description |
|---|
BootstrapDiscoveryConfig() |
| Modifier and Type | Method and Description |
|---|---|
int |
getFailureThreshold()
Returns the failure detector threshold.
|
Duration |
getFailureTimeout()
Returns the base failure timeout.
|
Duration |
getHeartbeatInterval()
Returns the heartbeat interval.
|
Collection<NodeConfig> |
getNodes()
Returns the configured bootstrap nodes.
|
NodeDiscoveryProvider.Type |
getType() |
BootstrapDiscoveryConfig |
setFailureThreshold(int failureThreshold)
Sets the failure detector threshold.
|
BootstrapDiscoveryConfig |
setFailureTimeout(Duration failureTimeout)
Sets the base failure timeout.
|
BootstrapDiscoveryConfig |
setHeartbeatInterval(Duration heartbeatInterval)
Sets the heartbeat interval.
|
BootstrapDiscoveryConfig |
setNodes(Collection<NodeConfig> nodes)
Sets the bootstrap nodes.
|
public NodeDiscoveryProvider.Type getType()
public Collection<NodeConfig> getNodes()
public BootstrapDiscoveryConfig setNodes(Collection<NodeConfig> nodes)
nodes - the bootstrap nodespublic Duration getHeartbeatInterval()
public BootstrapDiscoveryConfig setHeartbeatInterval(Duration heartbeatInterval)
heartbeatInterval - the heartbeat intervalpublic int getFailureThreshold()
public BootstrapDiscoveryConfig setFailureThreshold(int failureThreshold)
failureThreshold - the failure detector thresholdpublic Duration getFailureTimeout()
public BootstrapDiscoveryConfig setFailureTimeout(Duration failureTimeout)
failureTimeout - the base failure timeoutCopyright © 2013–2018. All rights reserved.