org.apache.mina.transport.socket.nio
Interface SocketSessionConfig
- IoSessionConfig
- SocketSessionConfigImpl
public interface SocketSessionConfig
getReceiveBufferSize
public int getReceiveBufferSize()
Socket.getReceiveBufferSize()
getSendBufferSize
public int getSendBufferSize()
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()
isKeepAlive
public boolean isKeepAlive()
isOobInline
public boolean isOobInline()
isReuseAddress
public boolean isReuseAddress()
isTcpNoDelay
public boolean isTcpNoDelay()
setKeepAlive
public void setKeepAlive(boolean keepAlive)
Socket.setKeepAlive(boolean)
setOobInline
public void setOobInline(boolean oobInline)
Socket.setOOBInline(boolean)
setReceiveBufferSize
public void setReceiveBufferSize(int receiveBufferSize)
Socket.setReceiveBufferSize(int)
setReuseAddress
public void setReuseAddress(boolean reuseAddress)
Socket.setReuseAddress(boolean)
setSendBufferSize
public void setSendBufferSize(int sendBufferSize)
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.
soLinger
- Please specify a negative value to disable SO_LINGER.
setTcpNoDelay
public void setTcpNoDelay(boolean tcpNoDelay)
Socket.setTcpNoDelay(boolean)
setTrafficClass
public void setTrafficClass(int trafficClass)
Socket.setTrafficClass(int)