Package org.apache.hc.core5.reactor
Class IOReactorConfig
- java.lang.Object
-
- org.apache.hc.core5.reactor.IOReactorConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIOReactorConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description private intbacklogSizestatic IOReactorConfigDEFAULTprivate intioThreadCountprivate intrcvBufSizeprivate TimeValueselectIntervalprivate intsndBufSizeprivate java.net.SocketAddresssocksProxyAddressprivate java.lang.StringsocksProxyPasswordprivate java.lang.StringsocksProxyUsernameprivate booleansoKeepAliveprivate TimeValuesoLingerprivate booleansoReuseAddressprivate TimeoutsoTimeoutprivate booleantcpNoDelayprivate inttrafficClass
-
Constructor Summary
Constructors Constructor Description IOReactorConfig(TimeValue selectInterval, int ioThreadCount, Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int trafficClass, int sndBufSize, int rcvBufSize, int backlogSize, java.net.SocketAddress socksProxyAddress, java.lang.String socksProxyUsername, java.lang.String socksProxyPassword)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static IOReactorConfig.Buildercopy(IOReactorConfig config)static IOReactorConfig.Buildercustom()intgetBacklogSize()intgetIoThreadCount()intgetRcvBufSize()TimeValuegetSelectInterval()intgetSndBufSize()java.net.SocketAddressgetSocksProxyAddress()java.lang.StringgetSocksProxyPassword()java.lang.StringgetSocksProxyUsername()TimeValuegetSoLinger()TimeoutgetSoTimeout()intgetTrafficClass()booleanisSoKeepalive()Deprecated.useisSoKeepAlive().booleanisSoKeepAlive()booleanisSoReuseAddress()booleanisTcpNoDelay()java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT
public static final IOReactorConfig DEFAULT
-
selectInterval
private final TimeValue selectInterval
-
ioThreadCount
private final int ioThreadCount
-
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
-
trafficClass
private final int trafficClass
-
sndBufSize
private final int sndBufSize
-
rcvBufSize
private final int rcvBufSize
-
backlogSize
private final int backlogSize
-
socksProxyAddress
private final java.net.SocketAddress socksProxyAddress
-
socksProxyUsername
private final java.lang.String socksProxyUsername
-
socksProxyPassword
private final java.lang.String socksProxyPassword
-
-
Constructor Detail
-
IOReactorConfig
IOReactorConfig(TimeValue selectInterval, int ioThreadCount, Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int trafficClass, int sndBufSize, int rcvBufSize, int backlogSize, java.net.SocketAddress socksProxyAddress, java.lang.String socksProxyUsername, java.lang.String socksProxyPassword)
-
-
Method Detail
-
getSelectInterval
public TimeValue getSelectInterval()
-
getIoThreadCount
public int getIoThreadCount()
-
getSoTimeout
public Timeout getSoTimeout()
-
isSoReuseAddress
public boolean isSoReuseAddress()
-
getSoLinger
public TimeValue getSoLinger()
-
isSoKeepAlive
public boolean isSoKeepAlive()
- Since:
- 5.2
- See Also:
IOReactorConfig.Builder.setSoKeepAlive(boolean)
-
isSoKeepalive
@Deprecated public boolean isSoKeepalive()
Deprecated.useisSoKeepAlive().
-
isTcpNoDelay
public boolean isTcpNoDelay()
-
getTrafficClass
public int getTrafficClass()
- Since:
- 5.1
- See Also:
IOReactorConfig.Builder.setTrafficClass(int)
-
getSndBufSize
public int getSndBufSize()
-
getRcvBufSize
public int getRcvBufSize()
-
getBacklogSize
public int getBacklogSize()
-
getSocksProxyAddress
public java.net.SocketAddress getSocksProxyAddress()
-
getSocksProxyUsername
public java.lang.String getSocksProxyUsername()
-
getSocksProxyPassword
public java.lang.String getSocksProxyPassword()
-
custom
public static IOReactorConfig.Builder custom()
-
copy
public static IOReactorConfig.Builder copy(IOReactorConfig config)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-