org.apache.mina.transport.socket.nio

Interface SocketSessionConfig

All Superinterfaces:
IoSessionConfig
Known Implementing Classes:
SocketSessionConfigImpl

public interface SocketSessionConfig
extends IoSessionConfig

An IoSessionConfig for socket transport type.

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()
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)
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 interface org.apache.mina.common.IoSessionConfig

clone

Method Details

getReceiveBufferSize

public int getReceiveBufferSize()
See Also:
Socket.getReceiveBufferSize()

getSendBufferSize

public int getSendBufferSize()
See Also:
Socket.getSendBufferSize()

getSoLinger

public int getSoLinger()
Please note that enabling SO_LINGER in Java NIO can result in platform-dependent behavior and unexpected blocking of I/O thread.

getTrafficClass

public int getTrafficClass()
See Also:
Socket.getTrafficClass()

isKeepAlive

public boolean isKeepAlive()
See Also:
Socket.getKeepAlive()

isOobInline

public boolean isOobInline()
See Also:
Socket.getOOBInline()

isReuseAddress

public boolean isReuseAddress()
See Also:
Socket.getReuseAddress()

isTcpNoDelay

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

setKeepAlive

public void setKeepAlive(boolean keepAlive)
See Also:
Socket.setKeepAlive(boolean)

setOobInline

public void setOobInline(boolean oobInline)
See Also:
Socket.setOOBInline(boolean)

setReceiveBufferSize

public void setReceiveBufferSize(int receiveBufferSize)
See Also:
Socket.setReceiveBufferSize(int)

setReuseAddress

public void setReuseAddress(boolean reuseAddress)
See Also:
Socket.setReuseAddress(boolean)

setSendBufferSize

public void setSendBufferSize(int sendBufferSize)
See Also:
Socket.setSendBufferSize(int)

setSoLinger

public 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.
Parameters:
soLinger - Please specify a negative value to disable SO_LINGER.

setTcpNoDelay

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

setTrafficClass

public void setTrafficClass(int trafficClass)
See Also:
Socket.setTrafficClass(int)