@Immutable public class SocketSettings extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SocketSettings.Builder
A builder for an instance of
SocketSettings . |
Modifier and Type | Method and Description |
---|---|
static SocketSettings.Builder |
builder()
Gets a builder for an instance of
SocketSettings . |
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 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()