public class SocketSessionConfigImpl extends BaseIoSessionConfig implements SocketSessionConfig
IoConnectorConfig for SocketConnector.| 构造器和说明 |
|---|
SocketSessionConfigImpl()
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
static boolean |
isGetTrafficClassAvailable() |
boolean |
isKeepAlive() |
boolean |
isOobInline() |
boolean |
isReuseAddress() |
static boolean |
isSetReceiveBufferSizeAvailable() |
static boolean |
isSetSendBufferSizeAvailable() |
static boolean |
isSetTrafficClassAvailable() |
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) |
cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonepublic static boolean isSetReceiveBufferSizeAvailable()
public static boolean isSetSendBufferSizeAvailable()
public static boolean isGetTrafficClassAvailable()
public static boolean isSetTrafficClassAvailable()
public boolean isReuseAddress()
isReuseAddress 在接口中 SocketSessionConfigSocket.getReuseAddress()public void setReuseAddress(boolean reuseAddress)
setReuseAddress 在接口中 SocketSessionConfigSocket.setReuseAddress(boolean)public int getReceiveBufferSize()
getReceiveBufferSize 在接口中 SocketSessionConfigSocket.getReceiveBufferSize()public void setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize 在接口中 SocketSessionConfigSocket.setReceiveBufferSize(int)public int getSendBufferSize()
getSendBufferSize 在接口中 SocketSessionConfigSocket.getSendBufferSize()public void setSendBufferSize(int sendBufferSize)
setSendBufferSize 在接口中 SocketSessionConfigSocket.setSendBufferSize(int)public int getTrafficClass()
getTrafficClass 在接口中 SocketSessionConfigSocket.getTrafficClass()public void setTrafficClass(int trafficClass)
setTrafficClass 在接口中 SocketSessionConfigSocket.setTrafficClass(int)public boolean isKeepAlive()
isKeepAlive 在接口中 SocketSessionConfigSocket.getKeepAlive()public void setKeepAlive(boolean keepAlive)
setKeepAlive 在接口中 SocketSessionConfigSocket.setKeepAlive(boolean)public boolean isOobInline()
isOobInline 在接口中 SocketSessionConfigSocket.getOOBInline()public void setOobInline(boolean oobInline)
setOobInline 在接口中 SocketSessionConfigSocket.setOOBInline(boolean)public int getSoLinger()
SocketSessionConfiggetSoLinger 在接口中 SocketSessionConfigSocket.getSoLinger(),
Sun Bug Databasepublic void setSoLinger(int soLinger)
SocketSessionConfigsetSoLinger 在接口中 SocketSessionConfigsoLinger - Please specify a negative value to disable SO_LINGER.Socket.setSoLinger(boolean, int),
Sun Bug Databasepublic boolean isTcpNoDelay()
isTcpNoDelay 在接口中 SocketSessionConfigSocket.getTcpNoDelay()public void setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay 在接口中 SocketSessionConfigSocket.setTcpNoDelay(boolean)