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 intstatic final IOReactorConfigprivate final intprivate final intprivate final TimeValueprivate final intprivate final SocketAddressprivate final Stringprivate final Stringprivate final booleanprivate final TimeValueprivate final booleanprivate final Timeoutprivate final booleanprivate 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.Buildercopy(IOReactorConfig config) static IOReactorConfig.Buildercustom()intintintintintbooleanDeprecated.booleanbooleanbooleantoString()
-
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().