Package org.apache.http.impl.nio.reactor
Class IOReactorConfig.Builder
java.lang.Object
org.apache.http.impl.nio.reactor.IOReactorConfig.Builder
- Enclosing class:
IOReactorConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private static int
private boolean
private int
private int
private long
private long
private int
private boolean
private int
private boolean
private int
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
static int
Gets the default value forioThreadCount
.setBacklogSize
(int backlogSize) setConnectTimeout
(int connectTimeout) static void
setDefaultMaxIoThreadCount
(int defaultMaxIoThreadCount) Sets the default value forioThreadCount
.setInterestOpQueued
(boolean interestOpQueued) setIoThreadCount
(int ioThreadCount) setRcvBufSize
(int rcvBufSize) setSelectInterval
(long selectInterval) setShutdownGracePeriod
(long shutdownGracePeriod) setSndBufSize
(int sndBufSize) setSoKeepAlive
(boolean soKeepAlive) setSoLinger
(int soLinger) setSoReuseAddress
(boolean soReuseAddress) setSoTimeout
(int soTimeout) setTcpNoDelay
(boolean tcpNoDelay)
-
Field Details
-
DefaultMaxIoThreadCount
private static int DefaultMaxIoThreadCount -
selectInterval
private long selectInterval -
shutdownGracePeriod
private long shutdownGracePeriod -
interestOpQueued
private boolean interestOpQueued -
ioThreadCount
private int ioThreadCount -
soTimeout
private int soTimeout -
soReuseAddress
private boolean soReuseAddress -
soLinger
private int soLinger -
soKeepAlive
private boolean soKeepAlive -
tcpNoDelay
private boolean tcpNoDelay -
connectTimeout
private int connectTimeout -
sndBufSize
private int sndBufSize -
rcvBufSize
private int rcvBufSize -
backlogSize
private int backlogSize
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
getDefaultMaxIoThreadCount
public static int getDefaultMaxIoThreadCount()Gets the default value forioThreadCount
. ReturnsRuntime.availableProcessors()
ifsetDefaultMaxIoThreadCount(int)
was called with a value <=0.- Returns:
- the default value for ioThreadCount.
- Since:
- 4.4.10
-
setDefaultMaxIoThreadCount
public static void setDefaultMaxIoThreadCount(int defaultMaxIoThreadCount) Sets the default value forioThreadCount
. Use a value <= 0 to causegetDefaultMaxIoThreadCount()
to returnRuntime.availableProcessors()
.- Parameters:
defaultMaxIoThreadCount
- the default value for ioThreadCount.- Since:
- 4.4.10
-
setSelectInterval
-
setShutdownGracePeriod
-
setInterestOpQueued
-
setIoThreadCount
-
setSoTimeout
-
setSoReuseAddress
-
setSoLinger
-
setSoKeepAlive
-
setTcpNoDelay
-
setConnectTimeout
-
setSndBufSize
-
setRcvBufSize
-
setBacklogSize
-
build
-