Package org.apache.http.impl.nio.reactor
Class IOReactorConfig.Builder
java.lang.Object
org.apache.http.impl.nio.reactor.IOReactorConfig.Builder
- Enclosing class:
IOReactorConfig
-
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)
-
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
-