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 class
IOReactorConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description private int
backlogSize
static IOReactorConfig
DEFAULT
private int
ioThreadCount
private int
rcvBufSize
private TimeValue
selectInterval
private int
sndBufSize
private java.net.SocketAddress
socksProxyAddress
private java.lang.String
socksProxyPassword
private java.lang.String
socksProxyUsername
private boolean
soKeepAlive
private TimeValue
soLinger
private boolean
soReuseAddress
private Timeout
soTimeout
private boolean
tcpNoDelay
private int
trafficClass
-
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.Builder
copy(IOReactorConfig config)
static IOReactorConfig.Builder
custom()
int
getBacklogSize()
int
getIoThreadCount()
int
getRcvBufSize()
TimeValue
getSelectInterval()
int
getSndBufSize()
java.net.SocketAddress
getSocksProxyAddress()
java.lang.String
getSocksProxyPassword()
java.lang.String
getSocksProxyUsername()
TimeValue
getSoLinger()
Timeout
getSoTimeout()
int
getTrafficClass()
boolean
isSoKeepalive()
Deprecated.useisSoKeepAlive()
.boolean
isSoKeepAlive()
boolean
isSoReuseAddress()
boolean
isTcpNoDelay()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-