Class SocketConfig
java.lang.Object
org.apache.hc.core5.http.io.SocketConfig
-
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 intprivate final intprivate final intprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionSocketConfig(Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int sndBufSize, int rcvBufSize, int backlogSize, int tcpKeepIdle, int tcpKeepInterval, int tcpKeepCount, SocketAddress socksProxyAddress) -
Method Summary
Modifier and TypeMethodDescriptionstatic SocketConfig.Buildercopy(SocketConfig config) static SocketConfig.Buildercustom()intintintintintintbooleanbooleanbooleantoString()
-
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 -
tcpKeepIdle
private final int tcpKeepIdle -
tcpKeepInterval
private final int tcpKeepInterval -
tcpKeepCount
private final int tcpKeepCount -
socksProxyAddress
-
-
Constructor Details
-
SocketConfig
SocketConfig(Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int sndBufSize, int rcvBufSize, int backlogSize, int tcpKeepIdle, int tcpKeepInterval, int tcpKeepCount, 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:
-
getTcpKeepIdle
public int getTcpKeepIdle()- Since:
- 5.3
- See Also:
-
getTcpKeepInterval
public int getTcpKeepInterval()- Since:
- 5.3
- See Also:
-
getTcpKeepCount
public int getTcpKeepCount()- Since:
- 5.3
- See Also:
-
getSocksProxyAddress
- See Also:
-
toString
-
custom
-
copy
-