org.apache.mina.transport.socket
Class DefaultSocketSessionConfig
java.lang.Object
org.apache.mina.common.AbstractIoSessionConfig
org.apache.mina.transport.socket.AbstractSocketSessionConfig
org.apache.mina.transport.socket.DefaultSocketSessionConfig
- All Implemented Interfaces:
- IoSessionConfig, SocketSessionConfig
public class DefaultSocketSessionConfig
- extends AbstractSocketSessionConfig
A default implementation of SocketSessionConfig
.
- Version:
- $Rev: 576455 $, $Date: 2007-09-17 16:39:24 +0200 (Mon, 17 Sep 2007) $
- Author:
- The Apache MINA Project (dev@mina.apache.org)
Methods inherited from class org.apache.mina.common.AbstractIoSessionConfig |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.mina.common.IoSessionConfig |
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 |
DefaultSocketSessionConfig
public DefaultSocketSessionConfig()
- Creates a new instance.
isSetReceiveBufferSizeAvailable
public static boolean isSetReceiveBufferSizeAvailable()
isSetSendBufferSizeAvailable
public static boolean isSetSendBufferSizeAvailable()
isGetTrafficClassAvailable
public static boolean isGetTrafficClassAvailable()
isSetTrafficClassAvailable
public static boolean isSetTrafficClassAvailable()
isReuseAddress
public boolean isReuseAddress()
- See Also:
Socket.getReuseAddress()
setReuseAddress
public void setReuseAddress(boolean reuseAddress)
- See Also:
Socket.setReuseAddress(boolean)
getReceiveBufferSize
public int getReceiveBufferSize()
- See Also:
Socket.getReceiveBufferSize()
setReceiveBufferSize
public void setReceiveBufferSize(int receiveBufferSize)
- See Also:
Socket.setReceiveBufferSize(int)
getSendBufferSize
public int getSendBufferSize()
- See Also:
Socket.getSendBufferSize()
setSendBufferSize
public void setSendBufferSize(int sendBufferSize)
- See Also:
Socket.setSendBufferSize(int)
getTrafficClass
public int getTrafficClass()
- See Also:
Socket.getTrafficClass()
setTrafficClass
public void setTrafficClass(int trafficClass)
- See Also:
Socket.setTrafficClass(int)
isKeepAlive
public boolean isKeepAlive()
- See Also:
Socket.getKeepAlive()
setKeepAlive
public void setKeepAlive(boolean keepAlive)
- See Also:
Socket.setKeepAlive(boolean)
isOobInline
public boolean isOobInline()
- See Also:
Socket.getOOBInline()
setOobInline
public void setOobInline(boolean oobInline)
- See Also:
Socket.setOOBInline(boolean)
getSoLinger
public int getSoLinger()
- Description copied from interface:
SocketSessionConfig
- Please note that enabling SO_LINGER in Java NIO can result
in platform-dependent behavior and unexpected blocking of I/O thread.
- See Also:
Socket.getSoLinger()
,
Sun Bug Database
setSoLinger
public void setSoLinger(int soLinger)
- Description copied from interface:
SocketSessionConfig
- Please note that enabling SO_LINGER in Java NIO can result
in platform-dependent behavior and unexpected blocking of I/O thread.
- Parameters:
soLinger
- Please specify a negative value to disable SO_LINGER.- See Also:
Socket.setSoLinger(boolean, int)
,
Sun Bug Database
isTcpNoDelay
public boolean isTcpNoDelay()
- See Also:
Socket.getTcpNoDelay()
setTcpNoDelay
public void setTcpNoDelay(boolean tcpNoDelay)
- See Also:
Socket.setTcpNoDelay(boolean)
Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.