|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.core.session.AbstractIoSessionConfig
org.apache.mina.transport.socket.AbstractSocketSessionConfig
org.apache.mina.transport.socket.DefaultSocketSessionConfig
public class DefaultSocketSessionConfig
A default implementation of SocketSessionConfig
.
Constructor Summary | |
---|---|
DefaultSocketSessionConfig()
Creates a new instance. |
Method Summary | |
---|---|
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)
|
static boolean |
isGetTrafficClassAvailable()
|
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. |
static boolean |
isSetReceiveBufferSizeAvailable()
|
static boolean |
isSetSendBufferSizeAvailable()
|
static boolean |
isSetTrafficClassAvailable()
|
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)
|
Methods inherited from class org.apache.mina.transport.socket.AbstractSocketSessionConfig |
---|
doSetAll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSocketSessionConfig()
Method Detail |
---|
public static boolean isSetReceiveBufferSizeAvailable()
public static boolean isSetSendBufferSizeAvailable()
public static boolean isGetTrafficClassAvailable()
public static boolean isSetTrafficClassAvailable()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |