| |
|
| java.lang.Object org.apache.tomcat.util.net.SocketProperties
SocketProperties | public class SocketProperties (Code) | | Properties that can be set in the <Connector> element
in server.xml. All properties are prefixed with "socket."
and are currently only working for the Nio connector
author: Filip Hanik |
appReadBufSize | protected int appReadBufSize(Code) | | The application read buffer size in bytes.
Default value is rxBufSize
|
appWriteBufSize | protected int appWriteBufSize(Code) | | The application write buffer size in bytes
Default value is txBufSize
|
bufferPool | protected int bufferPool(Code) | | NioChannel pool size for the endpoint,
this value is how many channels
-1 means unlimited cached, 0 means no cache
Default value is 500
|
bufferPoolSize | protected int bufferPoolSize(Code) | | Buffer pool size in bytes to be cached
-1 means unlimited, 0 means no cache
Default value is 100MB (1024*1024*100 bytes)
|
directBuffer | protected boolean directBuffer(Code) | | Enable/disable direct buffers for the network buffers
Default value is enabled
|
eventCache | protected int eventCache(Code) | | Enable/disable poller event cache, this bounded cache stores
PollerEvent objects to reduce GC for the poller
Default is 500
-1 is unlimited
0 is disabled
>0 the max number of objects to keep in cache.
|
keyCache | protected int keyCache(Code) | | Enable/disable key cache, this bounded cache stores
KeyAttachment objects to reduce GC
Default is 500
-1 is unlimited
0 is disabled
|
ooBInline | protected boolean ooBInline(Code) | | OOBINLINE option, default is true
|
performanceBandwidth | protected int performanceBandwidth(Code) | | Performance preferences according to
http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html#setPerformancePreferences(int,%20int,%20int)
Default value is 1
|
performanceConnectionTime | protected int performanceConnectionTime(Code) | | Performance preferences according to
http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html#setPerformancePreferences(int,%20int,%20int)
Default value is 1
|
performanceLatency | protected int performanceLatency(Code) | | Performance preferences according to
http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html#setPerformancePreferences(int,%20int,%20int)
Default value is 0
|
processorCache | protected int processorCache(Code) | | Enable/disable socket processor cache, this bounded cache stores
SocketProcessor objects to reduce GC
Default is 500
-1 is unlimited
0 is disabled
|
rxBufSize | protected int rxBufSize(Code) | | Socket receive buffer size in bytes (SO_RCVBUF)
Default value is 25188
|
soKeepAlive | protected boolean soKeepAlive(Code) | | SO_KEEPALIVE option, default is false
|
soLingerOn | protected boolean soLingerOn(Code) | | SO_LINGER option, default is true, paired with the soLingerTime value
|
soLingerTime | protected int soLingerTime(Code) | | SO_LINGER option, default is 25 seconds.
|
soReuseAddress | protected boolean soReuseAddress(Code) | | SO_REUSEADDR option, default is true
|
soTimeout | protected int soTimeout(Code) | | SO_TIMEOUT option, default is 5000 milliseconds
|
soTrafficClass | protected int soTrafficClass(Code) | | Traffic class option, value between 0 and 255
IPTOS_LOWCOST (0x02)
IPTOS_RELIABILITY (0x04)
IPTOS_THROUGHPUT (0x08)
IPTOS_LOWDELAY (0x10)
Default value is 0x04 | 0x08 | 0x010
|
tcpNoDelay | protected boolean tcpNoDelay(Code) | | TCP_NO_DELAY option, default is true
|
txBufSize | protected int txBufSize(Code) | | Socket send buffer size in bytes (SO_SNDBUF)
Default value is 43800
|
getAppReadBufSize | public int getAppReadBufSize()(Code) | | |
getAppWriteBufSize | public int getAppWriteBufSize()(Code) | | |
getBufferPool | public int getBufferPool()(Code) | | |
getBufferPoolSize | public int getBufferPoolSize()(Code) | | |
getDirectBuffer | public boolean getDirectBuffer()(Code) | | |
getDirectBufferPool | public int getDirectBufferPool()(Code) | | |
getEventCache | public int getEventCache()(Code) | | |
getKeyCache | public int getKeyCache()(Code) | | |
getOoBInline | public boolean getOoBInline()(Code) | | |
getPerformanceBandwidth | public int getPerformanceBandwidth()(Code) | | |
getPerformanceConnectionTime | public int getPerformanceConnectionTime()(Code) | | |
getPerformanceLatency | public int getPerformanceLatency()(Code) | | |
getProcessorCache | public int getProcessorCache()(Code) | | |
getRxBufSize | public int getRxBufSize()(Code) | | |
getSoKeepAlive | public boolean getSoKeepAlive()(Code) | | |
getSoLingerOn | public boolean getSoLingerOn()(Code) | | |
getSoLingerTime | public int getSoLingerTime()(Code) | | |
getSoReuseAddress | public boolean getSoReuseAddress()(Code) | | |
getSoTimeout | public int getSoTimeout()(Code) | | |
getSoTrafficClass | public int getSoTrafficClass()(Code) | | |
getTcpNoDelay | public boolean getTcpNoDelay()(Code) | | |
getTxBufSize | public int getTxBufSize()(Code) | | |
setAppReadBufSize | public void setAppReadBufSize(int appReadBufSize)(Code) | | |
setAppWriteBufSize | public void setAppWriteBufSize(int appWriteBufSize)(Code) | | |
setBufferPool | public void setBufferPool(int bufferPool)(Code) | | |
setBufferPoolSize | public void setBufferPoolSize(int bufferPoolSize)(Code) | | |
setDirectBuffer | public void setDirectBuffer(boolean directBuffer)(Code) | | |
setDirectBufferPool | public void setDirectBufferPool(int directBufferPool)(Code) | | |
setEventCache | public void setEventCache(int eventCache)(Code) | | |
setKeyCache | public void setKeyCache(int keyCache)(Code) | | |
setOoBInline | public void setOoBInline(boolean ooBInline)(Code) | | |
setPerformanceBandwidth | public void setPerformanceBandwidth(int performanceBandwidth)(Code) | | |
setPerformanceConnectionTime | public void setPerformanceConnectionTime(int performanceConnectionTime)(Code) | | |
setPerformanceLatency | public void setPerformanceLatency(int performanceLatency)(Code) | | |
setProcessorCache | public void setProcessorCache(int processorCache)(Code) | | |
setRxBufSize | public void setRxBufSize(int rxBufSize)(Code) | | |
setSoKeepAlive | public void setSoKeepAlive(boolean soKeepAlive)(Code) | | |
setSoLingerOn | public void setSoLingerOn(boolean soLingerOn)(Code) | | |
setSoLingerTime | public void setSoLingerTime(int soLingerTime)(Code) | | |
setSoReuseAddress | public void setSoReuseAddress(boolean soReuseAddress)(Code) | | |
setSoTimeout | public void setSoTimeout(int soTimeout)(Code) | | |
setSoTrafficClass | public void setSoTrafficClass(int soTrafficClass)(Code) | | |
setTcpNoDelay | public void setTcpNoDelay(boolean tcpNoDelay)(Code) | | |
setTxBufSize | public void setTxBufSize(int txBufSize)(Code) | | |
|
|
|