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) |
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public static boolean isSetReceiveBufferSizeAvailable()
public static boolean isSetSendBufferSizeAvailable()
public static boolean isGetTrafficClassAvailable()
public static boolean isSetTrafficClassAvailable()
public boolean isReuseAddress()
isReuseAddress
在接口中 SocketSessionConfig
Socket.getReuseAddress()
public void setReuseAddress(boolean reuseAddress)
setReuseAddress
在接口中 SocketSessionConfig
Socket.setReuseAddress(boolean)
public int getReceiveBufferSize()
getReceiveBufferSize
在接口中 SocketSessionConfig
Socket.getReceiveBufferSize()
public void setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
在接口中 SocketSessionConfig
Socket.setReceiveBufferSize(int)
public int getSendBufferSize()
getSendBufferSize
在接口中 SocketSessionConfig
Socket.getSendBufferSize()
public void setSendBufferSize(int sendBufferSize)
setSendBufferSize
在接口中 SocketSessionConfig
Socket.setSendBufferSize(int)
public int getTrafficClass()
getTrafficClass
在接口中 SocketSessionConfig
Socket.getTrafficClass()
public void setTrafficClass(int trafficClass)
setTrafficClass
在接口中 SocketSessionConfig
Socket.setTrafficClass(int)
public boolean isKeepAlive()
isKeepAlive
在接口中 SocketSessionConfig
Socket.getKeepAlive()
public void setKeepAlive(boolean keepAlive)
setKeepAlive
在接口中 SocketSessionConfig
Socket.setKeepAlive(boolean)
public boolean isOobInline()
isOobInline
在接口中 SocketSessionConfig
Socket.getOOBInline()
public void setOobInline(boolean oobInline)
setOobInline
在接口中 SocketSessionConfig
Socket.setOOBInline(boolean)
public int getSoLinger()
SocketSessionConfig
getSoLinger
在接口中 SocketSessionConfig
Socket.getSoLinger()
,
Sun Bug Databasepublic void setSoLinger(int soLinger)
SocketSessionConfig
setSoLinger
在接口中 SocketSessionConfig
soLinger
- Please specify a negative value to disable SO_LINGER.Socket.setSoLinger(boolean, int)
,
Sun Bug Databasepublic boolean isTcpNoDelay()
isTcpNoDelay
在接口中 SocketSessionConfig
Socket.getTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay
在接口中 SocketSessionConfig
Socket.setTcpNoDelay(boolean)