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) |
doSetAll
getBothIdleTime, 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, setWriteTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBothIdleTime, 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, setWriteTimeout
protected 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()
SocketSessionConfig
Socket.getSoLinger()
,
Sun Bug Databasepublic void setSoLinger(int soLinger)
SocketSessionConfig
soLinger
- 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()
AbstractSocketSessionConfig
isKeepAliveChanged
in class AbstractSocketSessionConfig
protected boolean isOobInlineChanged()
AbstractSocketSessionConfig
isOobInlineChanged
in class AbstractSocketSessionConfig
protected boolean isReceiveBufferSizeChanged()
AbstractSocketSessionConfig
isReceiveBufferSizeChanged
in class AbstractSocketSessionConfig
protected boolean isReuseAddressChanged()
AbstractSocketSessionConfig
isReuseAddressChanged
in class AbstractSocketSessionConfig
protected boolean isSendBufferSizeChanged()
AbstractSocketSessionConfig
isSendBufferSizeChanged
in class AbstractSocketSessionConfig
protected boolean isSoLingerChanged()
AbstractSocketSessionConfig
isSoLingerChanged
in class AbstractSocketSessionConfig
protected boolean isTcpNoDelayChanged()
AbstractSocketSessionConfig
isTcpNoDelayChanged
in class AbstractSocketSessionConfig
protected boolean isTrafficClassChanged()
AbstractSocketSessionConfig
isTrafficClassChanged
in class AbstractSocketSessionConfig
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.