public class MulticastDiscoveryConfig extends NodeDiscoveryConfig
| Constructor and Description |
|---|
MulticastDiscoveryConfig() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
getBroadcastInterval()
Returns the broadcast interval.
|
int |
getFailureThreshold()
Returns the failure detector threshold.
|
Duration |
getFailureTimeout()
Returns the base failure timeout.
|
NodeDiscoveryProvider.Type |
getType() |
MulticastDiscoveryConfig |
setBroadcastInterval(Duration broadcastInterval)
Sets the broadcast interval.
|
MulticastDiscoveryConfig |
setFailureThreshold(int failureThreshold)
Sets the failure detector threshold.
|
MulticastDiscoveryConfig |
setFailureTimeout(Duration failureTimeout)
Sets the base failure timeout.
|
public NodeDiscoveryProvider.Type getType()
public Duration getBroadcastInterval()
public MulticastDiscoveryConfig setBroadcastInterval(Duration broadcastInterval)
broadcastInterval - the broadcast intervalpublic int getFailureThreshold()
public MulticastDiscoveryConfig setFailureThreshold(int failureThreshold)
failureThreshold - the failure detector thresholdpublic Duration getFailureTimeout()
public MulticastDiscoveryConfig setFailureTimeout(Duration failureTimeout)
failureTimeout - the base failure timeoutCopyright © 2013–2018. All rights reserved.