IoSessionConfig, SocketSessionConfigpublic class SocketSessionConfigImpl extends BaseIoSessionConfig implements SocketSessionConfig
IoConnectorConfig for SocketConnector.| Constructor | Description |
|---|---|
SocketSessionConfigImpl() |
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
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) |
cloneclonepublic SocketSessionConfigImpl()
public static boolean isSetReceiveBufferSizeAvailable()
public static boolean isSetSendBufferSizeAvailable()
public static boolean isGetTrafficClassAvailable()
public static boolean isSetTrafficClassAvailable()
public boolean isReuseAddress()
isReuseAddress in interface SocketSessionConfigSocket.getReuseAddress()public void setReuseAddress(boolean reuseAddress)
setReuseAddress in interface SocketSessionConfigSocket.setReuseAddress(boolean)public int getReceiveBufferSize()
getReceiveBufferSize in interface SocketSessionConfigSocket.getReceiveBufferSize()public void setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in interface SocketSessionConfigSocket.setReceiveBufferSize(int)public int getSendBufferSize()
getSendBufferSize in interface SocketSessionConfigSocket.getSendBufferSize()public void setSendBufferSize(int sendBufferSize)
setSendBufferSize in interface SocketSessionConfigSocket.setSendBufferSize(int)public int getTrafficClass()
getTrafficClass in interface SocketSessionConfigSocket.getTrafficClass()public void setTrafficClass(int trafficClass)
setTrafficClass in interface SocketSessionConfigSocket.setTrafficClass(int)public boolean isKeepAlive()
isKeepAlive in interface SocketSessionConfigSocket.getKeepAlive()public void setKeepAlive(boolean keepAlive)
setKeepAlive in interface SocketSessionConfigSocket.setKeepAlive(boolean)public boolean isOobInline()
isOobInline in interface SocketSessionConfigSocket.getOOBInline()public void setOobInline(boolean oobInline)
setOobInline in interface SocketSessionConfigSocket.setOOBInline(boolean)public int getSoLinger()
SocketSessionConfiggetSoLinger in interface SocketSessionConfigSocket.getSoLinger(),
Sun Bug Databasepublic void setSoLinger(int soLinger)
SocketSessionConfigsetSoLinger in interface SocketSessionConfigsoLinger - Please specify a negative value to disable SO_LINGER.Socket.setSoLinger(boolean, int),
Sun Bug Databasepublic boolean isTcpNoDelay()
isTcpNoDelay in interface SocketSessionConfigSocket.getTcpNoDelay()public void setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay in interface SocketSessionConfigSocket.setTcpNoDelay(boolean)