Interface SocketSessionConfig
- All Superinterfaces:
IoSessionConfig
- All Known Implementing Classes:
SocketSessionConfigImpl
An
IoSessionConfig for socket transport type.-
Method Summary
Modifier and TypeMethodDescriptionintintintPlease note that enabling SO_LINGER in Java NIO can result in platform-dependent behavior and unexpected blocking of I/O thread.intbooleanbooleanbooleanbooleanvoidsetKeepAlive(boolean keepAlive) voidsetOobInline(boolean oobInline) voidsetReceiveBufferSize(int receiveBufferSize) voidsetReuseAddress(boolean reuseAddress) voidsetSendBufferSize(int sendBufferSize) voidsetSoLinger(int soLinger) Please note that enabling SO_LINGER in Java NIO can result in platform-dependent behavior and unexpected blocking of I/O thread.voidsetTcpNoDelay(boolean tcpNoDelay) voidsetTrafficClass(int trafficClass) Methods inherited from interface org.apache.mina.common.IoSessionConfig
clone
-
Method Details
-
isReuseAddress
boolean isReuseAddress()- See Also:
-
setReuseAddress
void setReuseAddress(boolean reuseAddress) - See Also:
-
getReceiveBufferSize
int getReceiveBufferSize()- See Also:
-
setReceiveBufferSize
void setReceiveBufferSize(int receiveBufferSize) - See Also:
-
getSendBufferSize
int getSendBufferSize()- See Also:
-
setSendBufferSize
void setSendBufferSize(int sendBufferSize) - See Also:
-
getTrafficClass
int getTrafficClass()- See Also:
-
setTrafficClass
void setTrafficClass(int trafficClass) - See Also:
-
isKeepAlive
boolean isKeepAlive()- See Also:
-
setKeepAlive
void setKeepAlive(boolean keepAlive) - See Also:
-
isOobInline
boolean isOobInline()- See Also:
-
setOobInline
void setOobInline(boolean oobInline) - See Also:
-
getSoLinger
int getSoLinger()Please note that enabling SO_LINGER in Java NIO can result in platform-dependent behavior and unexpected blocking of I/O thread.- See Also:
-
setSoLinger
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.- See Also:
-
isTcpNoDelay
boolean isTcpNoDelay()- See Also:
-
setTcpNoDelay
void setTcpNoDelay(boolean tcpNoDelay) - See Also:
-