public static class ServerSettings.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ServerSettings |
build()
Create a new ServerSettings from the settings applied to this builder.
|
ServerSettings.Builder |
heartbeatFrequency(long heartbeatFrequency,
TimeUnit timeUnit)
Sets the frequency that the cluster monitor attempts to reach each server.
|
ServerSettings.Builder |
minHeartbeatFrequency(long minHeartbeatFrequency,
TimeUnit timeUnit)
Sets the minimum heartbeat frequency.
|
public ServerSettings.Builder heartbeatFrequency(long heartbeatFrequency, TimeUnit timeUnit)
heartbeatFrequency - the heartbeat frequencytimeUnit - the time unitpublic ServerSettings.Builder minHeartbeatFrequency(long minHeartbeatFrequency, TimeUnit timeUnit)
minHeartbeatFrequency - the minimum heartbeat frequencytimeUnit - the time unitpublic ServerSettings build()