@Immutable public class SocketSettings extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SocketSettings.Builder
A builder for an instance of
SocketSettings. |
| 限定符和类型 | 方法和说明 |
|---|---|
static SocketSettings.Builder |
builder()
Gets a builder for an instance of
SocketSettings. |
boolean |
equals(java.lang.Object o) |
int |
getConnectTimeout(java.util.concurrent.TimeUnit timeUnit)
Gets the timeout for socket connect.
|
int |
getReadTimeout(java.util.concurrent.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()
Gets whether keep-alive is enabled.
|
java.lang.String |
toString() |
public static SocketSettings.Builder builder()
SocketSettings.public int getConnectTimeout(java.util.concurrent.TimeUnit timeUnit)
timeUnit - the time unit to get the timeout inpublic int getReadTimeout(java.util.concurrent.TimeUnit timeUnit)
timeUnit - the time unit to get the timeout inpublic boolean isKeepAlive()
public int getReceiveBufferSize()
public int getSendBufferSize()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object