@Immutable public class ServerSettings extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
ServerSettings.Builder |
A builder for the settings.
|
Modifier and Type | Method | Description |
---|---|---|
static ServerSettings.Builder |
builderโ() |
Creates a builder for ServerSettings.
|
static ServerSettings.Builder |
builderโ(ServerSettings serverSettings) |
Creates a builder instance.
|
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.
|
List<ServerListener> |
getServerListenersโ() |
Gets the server listeners.
|
List<ServerMonitorListener> |
getServerMonitorListenersโ() |
Gets the server monitor listeners.
|
int |
hashCodeโ() |
|
String |
toStringโ() |
public static ServerSettings.Builder builderโ()
public static ServerSettings.Builder builderโ(ServerSettings serverSettings)
serverSettings
- existing ServerSettings to default the builder settings on.public long getHeartbeatFrequencyโ(TimeUnit timeUnit)
timeUnit
- the time unitpublic long getMinHeartbeatFrequencyโ(TimeUnit timeUnit)
timeUnit
- the time unitpublic List<ServerListener> getServerListenersโ()
public List<ServerMonitorListener> getServerMonitorListenersโ()