@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()