org.apache.mina.transport.socket.nio
Interface SocketSessionConfig

All Superinterfaces:
IoSessionConfig
All Known Implementing Classes:
SocketSessionConfigImpl

public interface SocketSessionConfig
extends IoSessionConfig

An IoSessionConfig for socket transport type.

Version:
$Rev: 436993 $, $Date: 2006-08-26 00:36:56 +0200 (Sat, 26 Aug 2006) $
Author:
The Apache Directory Project (mina-dev@directory.apache.org)

Method Summary
 int getReceiveBufferSize()
           
 int getSendBufferSize()
           
 int getSoLinger()
           
 int getTrafficClass()
           
 boolean isKeepAlive()
           
 boolean isOobInline()
           
 boolean isReuseAddress()
           
 boolean isTcpNoDelay()
           
 void setKeepAlive(boolean keepAlive)
           
 void setOobInline(boolean oobInline)
           
 void setReceiveBufferSize(int receiveBufferSize)
           
 void setReuseAddress(boolean reuseAddress)
           
 void setSendBufferSize(int sendBufferSize)
           
 void setSoLinger(int soLinger)
           
 void setTcpNoDelay(boolean tcpNoDelay)
           
 void setTrafficClass(int trafficClass)
           
 
Methods inherited from interface org.apache.mina.common.IoSessionConfig
clone
 

Method Detail

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()
See Also:
Socket.getSoLinger()

setSoLinger

public void setSoLinger(int soLinger)
Parameters:
soLinger - Please specify a negative value to disable SO_LINGER.
See Also:
Socket.setSoLinger(boolean, int)

isTcpNoDelay

public boolean isTcpNoDelay()
See Also:
Socket.getTcpNoDelay()

setTcpNoDelay

public void setTcpNoDelay(boolean tcpNoDelay)
See Also:
Socket.setTcpNoDelay(boolean)