Package org.apache.hc.core5.reactor
Class IOReactorConfig
java.lang.Object
org.apache.hc.core5.reactor.IOReactorConfig
I/O reactor configuration parameters.
- Since:
- 4.2
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
static final IOReactorConfig
private final int
private final int
private final TimeValue
private final int
private final SocketAddress
private final String
private final String
private final boolean
private final TimeValue
private final boolean
private final Timeout
private final boolean
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionIOReactorConfig
(TimeValue selectInterval, int ioThreadCount, Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int trafficClass, int sndBufSize, int rcvBufSize, int backlogSize, SocketAddress socksProxyAddress, String socksProxyUsername, String socksProxyPassword) -
Method Summary
Modifier and TypeMethodDescriptionstatic IOReactorConfig.Builder
copy
(IOReactorConfig config) static IOReactorConfig.Builder
custom()
int
int
int
int
int
boolean
Deprecated.boolean
boolean
boolean
toString()
-
Field Details
-
DEFAULT
-
selectInterval
-
ioThreadCount
private final int ioThreadCount -
soTimeout
-
soReuseAddress
private final boolean soReuseAddress -
soLinger
-
soKeepAlive
private final boolean soKeepAlive -
tcpNoDelay
private final boolean tcpNoDelay -
trafficClass
private final int trafficClass -
sndBufSize
private final int sndBufSize -
rcvBufSize
private final int rcvBufSize -
backlogSize
private final int backlogSize -
socksProxyAddress
-
socksProxyUsername
-
socksProxyPassword
-
-
Constructor Details
-
IOReactorConfig
IOReactorConfig(TimeValue selectInterval, int ioThreadCount, Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int trafficClass, int sndBufSize, int rcvBufSize, int backlogSize, SocketAddress socksProxyAddress, String socksProxyUsername, String socksProxyPassword)
-
-
Method Details
-
getSelectInterval
- See Also:
-
getIoThreadCount
public int getIoThreadCount()- See Also:
-
getSoTimeout
- See Also:
-
isSoReuseAddress
public boolean isSoReuseAddress()- See Also:
-
getSoLinger
- See Also:
-
isSoKeepAlive
public boolean isSoKeepAlive()- Since:
- 5.2
- See Also:
-
isSoKeepalive
Deprecated.useisSoKeepAlive()
.- See Also:
-
isTcpNoDelay
public boolean isTcpNoDelay()- See Also:
-
getTrafficClass
public int getTrafficClass()- Since:
- 5.1
- See Also:
-
getSndBufSize
public int getSndBufSize()- See Also:
-
getRcvBufSize
public int getRcvBufSize()- See Also:
-
getBacklogSize
public int getBacklogSize()- See Also:
-
getSocksProxyAddress
- See Also:
-
getSocksProxyUsername
- See Also:
-
getSocksProxyPassword
- See Also:
-
custom
-
copy
-
toString
-
isSoKeepAlive()
.