|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.nio.reactor.IOReactorConfig
@NotThreadSafe public final class IOReactorConfig
I/O reactor configuration parameters.
Nested Class Summary | |
---|---|
static class |
IOReactorConfig.Builder
|
Field Summary | |
---|---|
static IOReactorConfig |
DEFAULT
|
Constructor Summary | |
---|---|
IOReactorConfig()
Deprecated. |
Method Summary | |
---|---|
protected IOReactorConfig |
clone()
|
static IOReactorConfig.Builder |
copy(IOReactorConfig config)
|
static IOReactorConfig.Builder |
custom()
|
int |
getConnectTimeout()
Determines the default connect timeout value for non-blocking connection requests. |
int |
getIoThreadCount()
Determines the number of I/O dispatch threads to be used by the I/O reactor. |
int |
getRcvBufSize()
Determines the default value of the SocketOptions.SO_RCVBUF parameter
for newly created sockets. |
long |
getSelectInterval()
Determines time interval in milliseconds at which the I/O reactor wakes up to check for timed out sessions and session requests. |
long |
getShutdownGracePeriod()
Determines grace period in milliseconds the I/O reactors are expected to block waiting for individual worker threads to terminate cleanly. |
int |
getSndBufSize()
Determines the default value of the SocketOptions.SO_SNDBUF parameter
for newly created sockets. |
int |
getSoLinger()
Determines the default value of the SocketOptions.SO_LINGER parameter
for newly created sockets. |
int |
getSoTimeout()
Determines the default socket timeout value for non-blocking I/O operations. |
boolean |
isInterestOpQueued()
Determines whether or not I/O interest operations are to be queued and executed asynchronously by the I/O reactor thread or to be applied to the underlying SelectionKey immediately. |
boolean |
isSoKeepalive()
Determines the default value of the SocketOptions.SO_KEEPALIVE parameter
for newly created sockets. |
boolean |
isSoReuseAddress()
Determines the default value of the SocketOptions.SO_REUSEADDR parameter
for newly created sockets. |
boolean |
isTcpNoDelay()
Determines the default value of the SocketOptions.TCP_NODELAY parameter
for newly created sockets. |
void |
setConnectTimeout(int connectTimeout)
Deprecated. (4.3) use IOReactorConfig.Builder.setConnectTimeout(int) |
void |
setInterestOpQueued(boolean interestOpQueued)
Deprecated. (4.3) use IOReactorConfig.Builder.setInterestOpQueued(boolean) |
void |
setIoThreadCount(int ioThreadCount)
Deprecated. (4.3) use IOReactorConfig.Builder.setIoThreadCount(int) |
void |
setRcvBufSize(int rcvBufSize)
Deprecated. (4.3) use IOReactorConfig.Builder.setRcvBufSize(int) |
void |
setSelectInterval(long selectInterval)
Deprecated. (4.3) use IOReactorConfig.Builder.setSelectInterval(long) |
void |
setShutdownGracePeriod(long gracePeriod)
Deprecated. (4.3) use IOReactorConfig.Builder.setShutdownGracePeriod(long) |
void |
setSndBufSize(int sndBufSize)
Deprecated. (4.3) use IOReactorConfig.Builder.setSndBufSize(int) |
void |
setSoKeepalive(boolean soKeepAlive)
Deprecated. (4.3) use IOReactorConfig.Builder.setSoKeepAlive(boolean) |
void |
setSoLinger(int soLinger)
Deprecated. (4.3) use IOReactorConfig.Builder.setSoLinger(int) |
void |
setSoReuseAddress(boolean soReuseAddress)
Deprecated. (4.3) use IOReactorConfig.Builder.setSoReuseAddress(boolean) |
void |
setSoTimeout(int soTimeout)
Deprecated. (4.3) use IOReactorConfig.Builder.setSoTimeout(int) |
void |
setTcpNoDelay(boolean tcpNoDelay)
Deprecated. (4.3) use IOReactorConfig.Builder.setTcpNoDelay(boolean) |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final IOReactorConfig DEFAULT
Constructor Detail |
---|
@Deprecated public IOReactorConfig()
Method Detail |
---|
public long getSelectInterval()
1000
milliseconds.
@Deprecated public void setSelectInterval(long selectInterval)
IOReactorConfig.Builder.setSelectInterval(long)
public long getShutdownGracePeriod()
500
milliseconds.
@Deprecated public void setShutdownGracePeriod(long gracePeriod)
IOReactorConfig.Builder.setShutdownGracePeriod(long)
public boolean isInterestOpQueued()
SelectionKey
immediately.
Default: false
SelectionKey
,
SelectionKey.interestOps()
,
SelectionKey.interestOps(int)
@Deprecated public void setInterestOpQueued(boolean interestOpQueued)
IOReactorConfig.Builder.setInterestOpQueued(boolean)
public int getIoThreadCount()
2
@Deprecated public void setIoThreadCount(int ioThreadCount)
IOReactorConfig.Builder.setIoThreadCount(int)
public int getSoTimeout()
0
(no timeout)
SocketOptions.SO_TIMEOUT
@Deprecated public void setSoTimeout(int soTimeout)
IOReactorConfig.Builder.setSoTimeout(int)
public boolean isSoReuseAddress()
SocketOptions.SO_REUSEADDR
parameter
for newly created sockets.
Default: false
SocketOptions.SO_REUSEADDR
@Deprecated public void setSoReuseAddress(boolean soReuseAddress)
IOReactorConfig.Builder.setSoReuseAddress(boolean)
public int getSoLinger()
SocketOptions.SO_LINGER
parameter
for newly created sockets.
Default: -1
SocketOptions.SO_LINGER
@Deprecated public void setSoLinger(int soLinger)
IOReactorConfig.Builder.setSoLinger(int)
public boolean isSoKeepalive()
SocketOptions.SO_KEEPALIVE
parameter
for newly created sockets.
Default: -1
SocketOptions.SO_KEEPALIVE
@Deprecated public void setSoKeepalive(boolean soKeepAlive)
IOReactorConfig.Builder.setSoKeepAlive(boolean)
public boolean isTcpNoDelay()
SocketOptions.TCP_NODELAY
parameter
for newly created sockets.
Default: false
SocketOptions.TCP_NODELAY
@Deprecated public void setTcpNoDelay(boolean tcpNoDelay)
IOReactorConfig.Builder.setTcpNoDelay(boolean)
public int getConnectTimeout()
0
(no timeout)
@Deprecated public void setConnectTimeout(int connectTimeout)
IOReactorConfig.Builder.setConnectTimeout(int)
public int getSndBufSize()
SocketOptions.SO_SNDBUF
parameter
for newly created sockets.
Default: 0
(system default)
SocketOptions.SO_SNDBUF
@Deprecated public void setSndBufSize(int sndBufSize)
IOReactorConfig.Builder.setSndBufSize(int)
public int getRcvBufSize()
SocketOptions.SO_RCVBUF
parameter
for newly created sockets.
Default: 0
(system default)
SocketOptions.SO_RCVBUF
@Deprecated public void setRcvBufSize(int rcvBufSize)
IOReactorConfig.Builder.setRcvBufSize(int)
protected IOReactorConfig clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public static IOReactorConfig.Builder custom()
public static IOReactorConfig.Builder copy(IOReactorConfig config)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |