@Immutable public class ServerSettings extends java.lang.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.
|
static ServerSettings.Builder |
builder(ServerSettings serverSettings)
Creates a builder instance.
|
boolean |
equals(java.lang.Object o) |
long |
getHeartbeatFrequency(java.util.concurrent.TimeUnit timeUnit)
Gets the frequency that the cluster monitor attempts to reach each server.
|
long |
getMinHeartbeatFrequency(java.util.concurrent.TimeUnit timeUnit)
Gets the minimum heartbeat frequency.
|
java.util.List<ServerListener> |
getServerListeners()
Gets the server listeners.
|
java.util.List<ServerMonitorListener> |
getServerMonitorListeners()
Gets the server monitor listeners.
|
int |
hashCode() |
java.lang.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(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- the time unitpublic long getMinHeartbeatFrequency(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- the time unitpublic java.util.List<ServerListener> getServerListeners()
public java.util.List<ServerMonitorListener> getServerMonitorListeners()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object