Fields Summary |
---|
protected int | keyCacheEnable/disable key cache, this bounded cache stores
KeyAttachment objects to reduce GC
Default is 500
-1 is unlimited
0 is disabled |
protected int | processorCacheEnable/disable socket processor cache, this bounded cache stores
SocketProcessor objects to reduce GC
Default is 500
-1 is unlimited
0 is disabled |
protected int | eventCacheEnable/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. |
protected boolean | directBufferEnable/disable direct buffers for the network buffers
Default value is enabled |
protected int | rxBufSizeSocket receive buffer size in bytes (SO_RCVBUF)
Default value is 25188 |
protected int | txBufSizeSocket send buffer size in bytes (SO_SNDBUF)
Default value is 43800 |
protected int | appReadBufSizeThe application read buffer size in bytes.
Default value is rxBufSize |
protected int | appWriteBufSizeThe application write buffer size in bytes
Default value is txBufSize |
protected int | bufferPoolNioChannel 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 | bufferPoolSizeBuffer pool size in bytes to be cached
-1 means unlimited, 0 means no cache
Default value is 100MB (1024*1024*100 bytes) |
protected boolean | tcpNoDelayTCP_NO_DELAY option, default is true |
protected boolean | soKeepAliveSO_KEEPALIVE option, default is false |
protected boolean | ooBInlineOOBINLINE option, default is true |
protected boolean | soReuseAddressSO_REUSEADDR option, default is true |
protected boolean | soLingerOnSO_LINGER option, default is true, paired with the soLingerTime value |
protected int | soLingerTimeSO_LINGER option, default is 25 seconds. |
protected int | soTimeoutSO_TIMEOUT option, default is 5000 milliseconds |
protected int | soTrafficClassTraffic 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 int | performanceConnectionTimePerformance 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 | performanceLatencyPerformance 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 | performanceBandwidthPerformance 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 |
private Socket | properties |
Methods Summary |
---|
public int | getAppReadBufSize()
return appReadBufSize;
|
public int | getAppWriteBufSize()
return appWriteBufSize;
|
public int | getBufferPool()
return bufferPool;
|
public int | getBufferPoolSize()
return bufferPoolSize;
|
public boolean | getDirectBuffer()
return directBuffer;
|
public int | getDirectBufferPool()
return bufferPool;
|
public int | getEventCache()
return eventCache;
|
public int | getKeyCache()
return keyCache;
|
public boolean | getOoBInline()
return ooBInline;
|
public int | getPerformanceBandwidth()
return performanceBandwidth;
|
public int | getPerformanceConnectionTime()
return performanceConnectionTime;
|
public int | getPerformanceLatency()
return performanceLatency;
|
public int | getProcessorCache()
return processorCache;
|
public java.net.Socket | getProperties()
return properties;
|
public int | getRxBufSize()
return rxBufSize;
|
public boolean | getSoKeepAlive()
return soKeepAlive;
|
public boolean | getSoLingerOn()
return soLingerOn;
|
public int | getSoLingerTime()
return soLingerTime;
|
public boolean | getSoReuseAddress()
return soReuseAddress;
|
public int | getSoTimeout()
return soTimeout;
|
public int | getSoTrafficClass()
return soTrafficClass;
|
public boolean | getTcpNoDelay()
return tcpNoDelay;
|
public int | getTxBufSize()
return txBufSize;
|
public void | setAppReadBufSize(int appReadBufSize)
this.appReadBufSize = appReadBufSize;
|
public void | setAppWriteBufSize(int appWriteBufSize)
this.appWriteBufSize = appWriteBufSize;
|
public void | setBufferPool(int bufferPool)
this.bufferPool = bufferPool;
|
public void | setBufferPoolSize(int bufferPoolSize)
this.bufferPoolSize = bufferPoolSize;
|
public void | setDirectBuffer(boolean directBuffer)
this.directBuffer = directBuffer;
|
public void | setDirectBufferPool(int directBufferPool)
this.bufferPool = directBufferPool;
|
public void | setEventCache(int eventCache)
this.eventCache = eventCache;
|
public void | setKeyCache(int keyCache)
this.keyCache = keyCache;
|
public void | setOoBInline(boolean ooBInline)
this.ooBInline = ooBInline;
|
public void | setPerformanceBandwidth(int performanceBandwidth)
this.performanceBandwidth = performanceBandwidth;
|
public void | setPerformanceConnectionTime(int performanceConnectionTime)
this.performanceConnectionTime = performanceConnectionTime;
|
public void | setPerformanceLatency(int performanceLatency)
this.performanceLatency = performanceLatency;
|
public void | setProcessorCache(int processorCache)
this.processorCache = processorCache;
|
public void | setProperties(java.net.Socket socket)
socket.setReceiveBufferSize(rxBufSize);
socket.setSendBufferSize(txBufSize);
socket.setOOBInline(ooBInline);
socket.setKeepAlive(soKeepAlive);
socket.setPerformancePreferences(performanceConnectionTime,performanceLatency,performanceBandwidth);
socket.setReuseAddress(soReuseAddress);
socket.setSoLinger(soLingerOn,soLingerTime);
socket.setSoTimeout(soTimeout);
socket.setTcpNoDelay(tcpNoDelay);
socket.setTrafficClass(soTrafficClass);
|
public void | setRxBufSize(int rxBufSize)
this.rxBufSize = rxBufSize;
|
public void | setSoKeepAlive(boolean soKeepAlive)
this.soKeepAlive = soKeepAlive;
|
public void | setSoLingerOn(boolean soLingerOn)
this.soLingerOn = soLingerOn;
|
public void | setSoLingerTime(int soLingerTime)
this.soLingerTime = soLingerTime;
|
public void | setSoReuseAddress(boolean soReuseAddress)
this.soReuseAddress = soReuseAddress;
|
public void | setSoTimeout(int soTimeout)
this.soTimeout = soTimeout;
|
public void | setSoTrafficClass(int soTrafficClass)
this.soTrafficClass = soTrafficClass;
|
public void | setTcpNoDelay(boolean tcpNoDelay)
this.tcpNoDelay = tcpNoDelay;
|
public void | setTxBufSize(int txBufSize)
this.txBufSize = txBufSize;
|