public class SocketSessionConfigImpl extends org.apache.mina.common.support.BaseIoSessionConfig implements SocketSessionConfig
IoConnectorConfig
for SocketConnector
.Constructor and Description |
---|
SocketSessionConfigImpl()
Creates a new instance.
|
Modifier and Type | Method and 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 will result
in platform-dependent behavior and unexpected blocking of I/O thread.
|
void |
setTcpNoDelay(boolean tcpNoDelay) |
void |
setTrafficClass(int trafficClass) |
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
in interface SocketSessionConfig
Socket.getReuseAddress()
public void setReuseAddress(boolean reuseAddress)
setReuseAddress
in interface SocketSessionConfig
Socket.setReuseAddress(boolean)
public int getReceiveBufferSize()
getReceiveBufferSize
in interface SocketSessionConfig
Socket.getReceiveBufferSize()
public void setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in interface SocketSessionConfig
Socket.setReceiveBufferSize(int)
public int getSendBufferSize()
getSendBufferSize
in interface SocketSessionConfig
Socket.getSendBufferSize()
public void setSendBufferSize(int sendBufferSize)
setSendBufferSize
in interface SocketSessionConfig
Socket.setSendBufferSize(int)
public int getTrafficClass()
getTrafficClass
in interface SocketSessionConfig
Socket.getTrafficClass()
public void setTrafficClass(int trafficClass)
setTrafficClass
in interface SocketSessionConfig
Socket.setTrafficClass(int)
public boolean isKeepAlive()
isKeepAlive
in interface SocketSessionConfig
Socket.getKeepAlive()
public void setKeepAlive(boolean keepAlive)
setKeepAlive
in interface SocketSessionConfig
Socket.setKeepAlive(boolean)
public boolean isOobInline()
isOobInline
in interface SocketSessionConfig
Socket.getOOBInline()
public void setOobInline(boolean oobInline)
setOobInline
in interface SocketSessionConfig
Socket.setOOBInline(boolean)
public int getSoLinger()
SocketSessionConfig
getSoLinger
in interface SocketSessionConfig
Socket.getSoLinger()
,
Sun Bug Databasepublic void setSoLinger(int soLinger)
SocketSessionConfig
setSoLinger
in interface SocketSessionConfig
soLinger
- Please specify a negative value to disable SO_LINGER.Socket.setSoLinger(boolean, int)
,
Sun Bug Databasepublic boolean isTcpNoDelay()
isTcpNoDelay
in interface SocketSessionConfig
Socket.getTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay
in interface SocketSessionConfig
Socket.setTcpNoDelay(boolean)
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.