public interface SocketSessionConfig extends IoSessionConfig
IoSessionConfig
for socket transport type.限定符和类型 | 方法和说明 |
---|---|
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) |
clone
boolean isReuseAddress()
Socket.getReuseAddress()
void setReuseAddress(boolean reuseAddress)
Socket.setReuseAddress(boolean)
int getReceiveBufferSize()
Socket.getReceiveBufferSize()
void setReceiveBufferSize(int receiveBufferSize)
Socket.setReceiveBufferSize(int)
int getSendBufferSize()
Socket.getSendBufferSize()
void setSendBufferSize(int sendBufferSize)
Socket.setSendBufferSize(int)
int getTrafficClass()
Socket.getTrafficClass()
void setTrafficClass(int trafficClass)
Socket.setTrafficClass(int)
boolean isKeepAlive()
Socket.getKeepAlive()
void setKeepAlive(boolean keepAlive)
Socket.setKeepAlive(boolean)
boolean isOobInline()
Socket.getOOBInline()
void setOobInline(boolean oobInline)
Socket.setOOBInline(boolean)
int getSoLinger()
Socket.getSoLinger()
,
Sun Bug Databasevoid setSoLinger(int soLinger)
soLinger
- Please specify a negative value to disable SO_LINGER.Socket.setSoLinger(boolean, int)
,
Sun Bug Databaseboolean isTcpNoDelay()
Socket.getTcpNoDelay()
void setTcpNoDelay(boolean tcpNoDelay)
Socket.setTcpNoDelay(boolean)