|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.http.config.SocketConfig
@Immutable public class SocketConfig
Socket configuration.
| Nested Class Summary | |
|---|---|
static class |
SocketConfig.Builder
|
| Field Summary | |
|---|---|
static SocketConfig |
DEFAULT
|
| Method Summary | |
|---|---|
protected SocketConfig |
clone()
|
static SocketConfig.Builder |
copy(SocketConfig config)
|
static SocketConfig.Builder |
custom()
|
int |
getSoLinger()
Determines the default value of the SocketOptions.SO_LINGER parameter
for newly created sockets. |
int |
getSoTimeout()
Determines the default socket timeout value for non-blocking I/O operations. |
boolean |
isSoKeepAlive()
Determines the default value of the SocketOptions.SO_KEEPALIVE parameter
for newly created sockets. |
boolean |
isSoReuseAddress()
Determines the default value of the SocketOptions.SO_REUSEADDR parameter
for newly created sockets. |
boolean |
isTcpNoDelay()
Determines the default value of the SocketOptions.TCP_NODELAY parameter
for newly created sockets. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SocketConfig DEFAULT
| Method Detail |
|---|
public int getSoTimeout()
0 (no timeout)
SocketOptions.SO_TIMEOUTpublic boolean isSoReuseAddress()
SocketOptions.SO_REUSEADDR parameter
for newly created sockets.
Default: false
SocketOptions.SO_REUSEADDRpublic int getSoLinger()
SocketOptions.SO_LINGER parameter
for newly created sockets.
Default: -1
SocketOptions.SO_LINGERpublic boolean isSoKeepAlive()
SocketOptions.SO_KEEPALIVE parameter
for newly created sockets.
Default: -1
SocketOptions.SO_KEEPALIVEpublic boolean isTcpNoDelay()
SocketOptions.TCP_NODELAY parameter
for newly created sockets.
Default: false
SocketOptions.TCP_NODELAY
protected SocketConfig clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static SocketConfig.Builder custom()
public static SocketConfig.Builder copy(SocketConfig config)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||