public class DefaultSocketSessionConfig extends AbstractSocketSessionConfig
SocketSessionConfig.| Constructor and Description |
|---|
DefaultSocketSessionConfig()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getSoLinger()
Please note that enabling SO_LINGER in Java NIO can result
in platform-dependent behavior and unexpected blocking of I/O thread.
|
int |
getTrafficClass() |
void |
init(IoService parent) |
boolean |
isKeepAlive() |
protected boolean |
isKeepAliveChanged()
Returns true if and only if the keepAlive property
has been changed by its setter method.
|
boolean |
isOobInline() |
protected boolean |
isOobInlineChanged()
Returns true if and only if the oobInline property
has been changed by its setter method.
|
protected boolean |
isReceiveBufferSizeChanged()
Returns true if and only if the receiveBufferSize property
has been changed by its setter method.
|
boolean |
isReuseAddress() |
protected boolean |
isReuseAddressChanged()
Returns true if and only if the reuseAddress property
has been changed by its setter method.
|
protected boolean |
isSendBufferSizeChanged()
Returns true if and only if the sendBufferSize property
has been changed by its setter method.
|
protected boolean |
isSoLingerChanged()
Returns true if and only if the soLinger property
has been changed by its setter method.
|
boolean |
isTcpNoDelay() |
protected boolean |
isTcpNoDelayChanged()
Returns true if and only if the tcpNoDelay property
has been changed by its setter method.
|
protected boolean |
isTrafficClassChanged()
Returns true if and only if the trafficClass property
has been changed by its setter method.
|
void |
setKeepAlive(boolean keepAlive) |
void |
setOobInline(boolean oobInline) |
void |
setReceiveBufferSize(int receiveBufferSize) |
void |
setReuseAddress(boolean reuseAddress) |
void |
setSendBufferSize(int sendBufferSize) |
void |
setSoLinger(int soLinger)
Please note that enabling SO_LINGER in Java NIO can result
in platform-dependent behavior and unexpected blocking of I/O thread.
|
void |
setTcpNoDelay(boolean tcpNoDelay) |
void |
setTrafficClass(int trafficClass) |
doSetAllgetBothIdleTime, getBothIdleTimeInMillis, getIdleTime, getIdleTimeInMillis, getMaxReadBufferSize, getMinReadBufferSize, getReadBufferSize, getReaderIdleTime, getReaderIdleTimeInMillis, getThroughputCalculationInterval, getThroughputCalculationIntervalInMillis, getWriterIdleTime, getWriterIdleTimeInMillis, getWriteTimeout, getWriteTimeoutInMillis, isUseReadOperation, setAll, setBothIdleTime, setIdleTime, setMaxReadBufferSize, setMinReadBufferSize, setReadBufferSize, setReaderIdleTime, setThroughputCalculationInterval, setUseReadOperation, setWriterIdleTime, setWriteTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBothIdleTime, getBothIdleTimeInMillis, getIdleTime, getIdleTimeInMillis, getMaxReadBufferSize, getMinReadBufferSize, getReadBufferSize, getReaderIdleTime, getReaderIdleTimeInMillis, getThroughputCalculationInterval, getThroughputCalculationIntervalInMillis, getWriterIdleTime, getWriterIdleTimeInMillis, getWriteTimeout, getWriteTimeoutInMillis, isUseReadOperation, setAll, setBothIdleTime, setIdleTime, setMaxReadBufferSize, setMinReadBufferSize, setReadBufferSize, setReaderIdleTime, setThroughputCalculationInterval, setUseReadOperation, setWriterIdleTime, setWriteTimeoutprotected IoService parent
public DefaultSocketSessionConfig()
public void init(IoService parent)
public boolean isReuseAddress()
Socket.getReuseAddress()public void setReuseAddress(boolean reuseAddress)
Socket.setReuseAddress(boolean)public int getReceiveBufferSize()
Socket.getReceiveBufferSize()public void setReceiveBufferSize(int receiveBufferSize)
Socket.setReceiveBufferSize(int)public int getSendBufferSize()
Socket.getSendBufferSize()public void setSendBufferSize(int sendBufferSize)
Socket.setSendBufferSize(int)public int getTrafficClass()
Socket.getTrafficClass()public void setTrafficClass(int trafficClass)
Socket.setTrafficClass(int)public boolean isKeepAlive()
Socket.getKeepAlive()public void setKeepAlive(boolean keepAlive)
Socket.setKeepAlive(boolean)public boolean isOobInline()
Socket.getOOBInline()public void setOobInline(boolean oobInline)
Socket.setOOBInline(boolean)public int getSoLinger()
SocketSessionConfigSocket.getSoLinger(),
Sun Bug Databasepublic void setSoLinger(int soLinger)
SocketSessionConfigsoLinger - Please specify a negative value to disable SO_LINGER.Socket.setSoLinger(boolean, int),
Sun Bug Databasepublic boolean isTcpNoDelay()
Socket.getTcpNoDelay()public void setTcpNoDelay(boolean tcpNoDelay)
Socket.setTcpNoDelay(boolean)protected boolean isKeepAliveChanged()
AbstractSocketSessionConfigisKeepAliveChanged in class AbstractSocketSessionConfigprotected boolean isOobInlineChanged()
AbstractSocketSessionConfigisOobInlineChanged in class AbstractSocketSessionConfigprotected boolean isReceiveBufferSizeChanged()
AbstractSocketSessionConfigisReceiveBufferSizeChanged in class AbstractSocketSessionConfigprotected boolean isReuseAddressChanged()
AbstractSocketSessionConfigisReuseAddressChanged in class AbstractSocketSessionConfigprotected boolean isSendBufferSizeChanged()
AbstractSocketSessionConfigisSendBufferSizeChanged in class AbstractSocketSessionConfigprotected boolean isSoLingerChanged()
AbstractSocketSessionConfigisSoLingerChanged in class AbstractSocketSessionConfigprotected boolean isTcpNoDelayChanged()
AbstractSocketSessionConfigisTcpNoDelayChanged in class AbstractSocketSessionConfigprotected boolean isTrafficClassChanged()
AbstractSocketSessionConfigisTrafficClassChanged in class AbstractSocketSessionConfig