@Immutable public class ServerSettings extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerSettings.Builder
A builder for the settings.
|
Modifier and Type | Method and Description |
---|---|
static ServerSettings.Builder |
builder()
Creates a builder for ServerSettings.
|
boolean |
equals(Object o) |
long |
getHeartbeatFrequency(TimeUnit timeUnit)
Gets the frequency that the cluster monitor attempts to reach each server.
|
long |
getMinHeartbeatFrequency(TimeUnit timeUnit)
Gets the minimum heartbeat frequency.
|
int |
hashCode() |
String |
toString() |
public static ServerSettings.Builder builder()
public long getHeartbeatFrequency(TimeUnit timeUnit)
timeUnit
- the time unitpublic long getMinHeartbeatFrequency(TimeUnit timeUnit)
timeUnit
- the time unit