|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.util.net.SocketProperties
public class SocketProperties
Field Summary | |
---|---|
protected int |
bufferPool
NioChannel pool size for the endpoint, this value is how many channels -1 means unlimited cached, 0 means no cache Default value is 500 |
protected int |
bufferPoolSize
Buffer pool size in bytes to be cached -1 means unlimited, 0 means no cache Default value is 100MB (1024*1024*100 bytes) |
protected boolean |
directBuffer
Enable/disable direct buffers for the network buffers Default value is enabled |
protected boolean |
ooBInline
OOBINLINE option, default is true |
protected int |
performanceBandwidth
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 |
protected int |
performanceConnectionTime
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 |
protected int |
performanceLatency
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 |
protected int |
rxBufSize
Socket receive buffer size in bytes (SO_RCVBUF) Default value is 25188 |
protected boolean |
soKeepAlive
SO_KEEPALIVE option, default is false |
protected boolean |
soLingerOn
SO_LINGER option, default is true, paired with the soLingerTime value |
protected int |
soLingerTime
SO_LINGER option, default is 25 seconds. |
protected boolean |
soReuseAddress
SO_REUSEADDR option, default is true |
protected int |
soTimeout
SO_TIMEOUT option, default is 5000 milliseconds |
protected int |
soTrafficClass
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 |
protected boolean |
tcpNoDelay
TCP_NO_DELAY option, default is false |
protected int |
txBufSize
Socket send buffer size in bytes (SO_SNDBUF) Default value is 43800 |
Constructor Summary | |
---|---|
SocketProperties()
|
Method Summary | |
---|---|
int |
getBufferPool()
|
int |
getBufferPoolSize()
|
boolean |
getDirectBuffer()
|
int |
getDirectBufferPool()
|
boolean |
getOoBInline()
|
int |
getPerformanceBandwidth()
|
int |
getPerformanceConnectionTime()
|
int |
getPerformanceLatency()
|
int |
getRxBufSize()
|
boolean |
getSoKeepAlive()
|
boolean |
getSoLingerOn()
|
int |
getSoLingerTime()
|
boolean |
getSoReuseAddress()
|
int |
getSoTimeout()
|
int |
getSoTrafficClass()
|
boolean |
getTcpNoDelay()
|
int |
getTxBufSize()
|
void |
setBufferPool(int bufferPool)
|
void |
setBufferPoolSize(int bufferPoolSize)
|
void |
setDirectBuffer(boolean directBuffer)
|
void |
setDirectBufferPool(int directBufferPool)
|
void |
setOoBInline(boolean ooBInline)
|
void |
setPerformanceBandwidth(int performanceBandwidth)
|
void |
setPerformanceConnectionTime(int performanceConnectionTime)
|
void |
setPerformanceLatency(int performanceLatency)
|
void |
setProperties(java.net.Socket socket)
|
void |
setRxBufSize(int rxBufSize)
|
void |
setSoKeepAlive(boolean soKeepAlive)
|
void |
setSoLingerOn(boolean soLingerOn)
|
void |
setSoLingerTime(int soLingerTime)
|
void |
setSoReuseAddress(boolean soReuseAddress)
|
void |
setSoTimeout(int soTimeout)
|
void |
setSoTrafficClass(int soTrafficClass)
|
void |
setTcpNoDelay(boolean tcpNoDelay)
|
void |
setTxBufSize(int txBufSize)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean directBuffer
protected int rxBufSize
protected int txBufSize
protected int bufferPool
protected int bufferPoolSize
protected boolean tcpNoDelay
protected boolean soKeepAlive
protected boolean ooBInline
protected boolean soReuseAddress
protected boolean soLingerOn
soLingerTime
value
protected int soLingerTime
protected int soTimeout
protected int soTrafficClass
protected int performanceConnectionTime
protected int performanceLatency
protected int performanceBandwidth
Constructor Detail |
---|
public SocketProperties()
Method Detail |
---|
public void setProperties(java.net.Socket socket) throws java.net.SocketException
java.net.SocketException
public boolean getDirectBuffer()
public boolean getOoBInline()
public int getPerformanceBandwidth()
public int getPerformanceConnectionTime()
public int getPerformanceLatency()
public int getRxBufSize()
public boolean getSoKeepAlive()
public boolean getSoLingerOn()
public int getSoLingerTime()
public boolean getSoReuseAddress()
public int getSoTimeout()
public int getSoTrafficClass()
public boolean getTcpNoDelay()
public int getTxBufSize()
public int getBufferPool()
public int getBufferPoolSize()
public int getDirectBufferPool()
public void setPerformanceConnectionTime(int performanceConnectionTime)
public void setTxBufSize(int txBufSize)
public void setTcpNoDelay(boolean tcpNoDelay)
public void setSoTrafficClass(int soTrafficClass)
public void setSoTimeout(int soTimeout)
public void setSoReuseAddress(boolean soReuseAddress)
public void setSoLingerTime(int soLingerTime)
public void setSoKeepAlive(boolean soKeepAlive)
public void setRxBufSize(int rxBufSize)
public void setPerformanceLatency(int performanceLatency)
public void setPerformanceBandwidth(int performanceBandwidth)
public void setOoBInline(boolean ooBInline)
public void setDirectBuffer(boolean directBuffer)
public void setSoLingerOn(boolean soLingerOn)
public void setBufferPool(int bufferPool)
public void setBufferPoolSize(int bufferPoolSize)
public void setDirectBufferPool(int directBufferPool)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |