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 class
SocketConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description private int
backlogSize
static SocketConfig
DEFAULT
private static Timeout
DEFAULT_SOCKET_TIMEOUT
private int
rcvBufSize
private int
sndBufSize
private java.net.SocketAddress
socksProxyAddress
private boolean
soKeepAlive
private TimeValue
soLinger
private boolean
soReuseAddress
private Timeout
soTimeout
private boolean
tcpNoDelay
-
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.Builder
copy(SocketConfig config)
static SocketConfig.Builder
custom()
int
getBacklogSize()
int
getRcvBufSize()
int
getSndBufSize()
java.net.SocketAddress
getSocksProxyAddress()
TimeValue
getSoLinger()
Timeout
getSoTimeout()
boolean
isSoKeepAlive()
boolean
isSoReuseAddress()
boolean
isTcpNoDelay()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
custom
public static SocketConfig.Builder custom()
-
copy
public static SocketConfig.Builder copy(SocketConfig config)
-
-