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 intstatic final SocketConfigprivate static final Timeoutprivate final intprivate final intprivate final SocketAddressprivate final booleanprivate final TimeValueprivate final booleanprivate final Timeoutprivate 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.Buildercopy(SocketConfig config) static SocketConfig.Buildercustom()intintintbooleanbooleanbooleantoString()
-
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
-