Interface SocketSessionConfig
- All Superinterfaces:
IoSessionConfig
- All Known Implementing Classes:
SocketSessionConfigImpl
An
IoSessionConfig
for socket transport type.-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
Please note that enabling SO_LINGER in Java NIO can result in platform-dependent behavior and unexpected blocking of I/O thread.int
boolean
boolean
boolean
boolean
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
-
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:
-