@Immutable public class SocketSettings extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
SocketSettings.Builder |
A builder for an instance of
SocketSettings . |
Modifier and Type | Method | Description |
---|---|---|
static SocketSettings.Builder |
builderโ() |
Gets a builder for an instance of
SocketSettings . |
static SocketSettings.Builder |
builderโ(SocketSettings socketSettings) |
Creates a builder instance.
|
boolean |
equalsโ(Object o) |
|
int |
getConnectTimeoutโ(TimeUnit timeUnit) |
Gets the timeout for socket connect.
|
int |
getReadTimeoutโ(TimeUnit timeUnit) |
Gets the timeout for socket reads.
|
int |
getReceiveBufferSizeโ() |
Gets the receive buffer size.
|
int |
getSendBufferSizeโ() |
Gets the send buffer size.
|
int |
hashCodeโ() |
|
boolean |
isKeepAliveโ() |
Deprecated.
configuring keep-alive has been deprecated. It now defaults to true and disabling it is not recommended.
|
String |
toStringโ() |
public static SocketSettings.Builder builderโ()
SocketSettings
.public static SocketSettings.Builder builderโ(SocketSettings socketSettings)
socketSettings
- existing SocketSettings to default the builder settings on.public int getConnectTimeoutโ(TimeUnit timeUnit)
timeUnit
- the time unit to get the timeout inpublic int getReadTimeoutโ(TimeUnit timeUnit)
timeUnit
- the time unit to get the timeout in@Deprecated public boolean isKeepAliveโ()
public int getReceiveBufferSizeโ()
public int getSendBufferSizeโ()