Package org.apache.hc.core5.http.io
Class SocketConfig
- java.lang.Object
-
- org.apache.hc.core5.http.io.SocketConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSocketConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description private intbacklogSizestatic SocketConfigDEFAULTprivate static TimeoutDEFAULT_SOCKET_TIMEOUTprivate intrcvBufSizeprivate intsndBufSizeprivate java.net.SocketAddresssocksProxyAddressprivate booleansoKeepAliveprivate TimeValuesoLingerprivate booleansoReuseAddressprivate TimeoutsoTimeoutprivate booleantcpNoDelay
-
Constructor Summary
Constructors Constructor Description SocketConfig(Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int sndBufSize, int rcvBufSize, int backlogSize, java.net.SocketAddress socksProxyAddress)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SocketConfig.Buildercopy(SocketConfig config)static SocketConfig.Buildercustom()intgetBacklogSize()intgetRcvBufSize()intgetSndBufSize()java.net.SocketAddressgetSocksProxyAddress()TimeValuegetSoLinger()TimeoutgetSoTimeout()booleanisSoKeepAlive()booleanisSoReuseAddress()booleanisTcpNoDelay()java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT_SOCKET_TIMEOUT
private static final Timeout DEFAULT_SOCKET_TIMEOUT
-
DEFAULT
public static final SocketConfig DEFAULT
-
soTimeout
private final Timeout soTimeout
-
soReuseAddress
private final boolean soReuseAddress
-
soLinger
private final TimeValue 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
private final java.net.SocketAddress socksProxyAddress
-
-
Method Detail
-
getSoTimeout
public Timeout getSoTimeout()
-
isSoReuseAddress
public boolean isSoReuseAddress()
-
getSoLinger
public TimeValue getSoLinger()
-
isSoKeepAlive
public boolean isSoKeepAlive()
-
isTcpNoDelay
public boolean isTcpNoDelay()
-
getSndBufSize
public int getSndBufSize()
- Since:
- 4.4
- See Also:
SocketConfig.Builder.setSndBufSize(int)
-
getRcvBufSize
public int getRcvBufSize()
- Since:
- 4.4
- See Also:
SocketConfig.Builder.setRcvBufSize(int)
-
getBacklogSize
public int getBacklogSize()
- Since:
- 4.4
- See Also:
SocketConfig.Builder.setBacklogSize(int)
-
getSocksProxyAddress
public java.net.SocketAddress getSocksProxyAddress()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
custom
public static SocketConfig.Builder custom()
-
copy
public static SocketConfig.Builder copy(SocketConfig config)
-
-