Package org.apache.hc.core5.http.io
Class SocketConfig
java.lang.Object
org.apache.hc.core5.http.io.SocketConfig
Classic I/O network socket configuration.
- Since:
- 4.3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
static final SocketConfig
private static final Timeout
private final int
private final int
private final SocketAddress
private final boolean
private final TimeValue
private final boolean
private final Timeout
private final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionSocketConfig
(Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int sndBufSize, int rcvBufSize, int backlogSize, SocketAddress socksProxyAddress) -
Method Summary
Modifier and TypeMethodDescriptionstatic SocketConfig.Builder
copy
(SocketConfig config) static SocketConfig.Builder
custom()
int
int
int
boolean
boolean
boolean
toString()
-
Field Details
-
DEFAULT_SOCKET_TIMEOUT
-
DEFAULT
-
soTimeout
-
soReuseAddress
private final boolean soReuseAddress -
soLinger
-
soKeepAlive
private final boolean soKeepAlive -
tcpNoDelay
private final boolean tcpNoDelay -
sndBufSize
private final int sndBufSize -
rcvBufSize
private final int rcvBufSize -
backlogSize
private final int backlogSize -
socksProxyAddress
-
-
Constructor Details
-
SocketConfig
SocketConfig(Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int sndBufSize, int rcvBufSize, int backlogSize, SocketAddress socksProxyAddress)
-
-
Method Details
-
getSoTimeout
- See Also:
-
isSoReuseAddress
public boolean isSoReuseAddress()- See Also:
-
getSoLinger
- See Also:
-
isSoKeepAlive
public boolean isSoKeepAlive()- See Also:
-
isTcpNoDelay
public boolean isTcpNoDelay()- See Also:
-
getSndBufSize
public int getSndBufSize()- Since:
- 4.4
- See Also:
-
getRcvBufSize
public int getRcvBufSize()- Since:
- 4.4
- See Also:
-
getBacklogSize
public int getBacklogSize()- Since:
- 4.4
- See Also:
-
getSocksProxyAddress
- See Also:
-
toString
-
custom
-
copy
-