public class DefaultTcpSessionConfig extends AbstractIoSessionConfig implements TcpSessionConfig
| Constructor and Description |
|---|
DefaultTcpSessionConfig() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getSoLinger()
Please note that enabling SO_LINGER in Java NIO can result
in platform-dependent behavior and unexpected blocking of I/O thread.
|
SSLContext |
getSslContext() |
Boolean |
isKeepAlive() |
Boolean |
isOobInline() |
boolean |
isSecured()
Tells if the session provides some encryption (SSL/TLS)
|
Boolean |
isTcpNoDelay() |
void |
setKeepAlive(boolean keepAlive) |
void |
setOobInline(boolean oobInline) |
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 |
setSslContext(SSLContext sslContext)
Inject a
SSLContex valid for the session. |
void |
setTcpNoDelay(boolean tcpNoDelay) |
getIdleTimeInMillis, getReadBufferSize, getSendBufferSize, getTimeout, getTrafficClass, isReuseAddress, setIdleTimeInMillis, setReadBufferSize, setReuseAddress, setSendBufferSize, setTimeout, setTrafficClass, setTrafficClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdleTimeInMillis, getReadBufferSize, getSendBufferSize, getTimeout, getTrafficClass, isReuseAddress, setIdleTimeInMillis, setReadBufferSize, setReuseAddress, setSendBufferSize, setTimeout, setTrafficClass, setTrafficClasspublic Boolean isTcpNoDelay()
isTcpNoDelay in interface TcpSessionConfigSocket.getTcpNoDelay()public void setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay in interface TcpSessionConfigSocket.setTcpNoDelay(boolean)public Boolean isKeepAlive()
isKeepAlive in interface TcpSessionConfigreturn null if the default system value is usedpublic void setKeepAlive(boolean keepAlive)
setKeepAlive in interface TcpSessionConfigSocket.setKeepAlive(boolean)public Boolean isOobInline()
isOobInline in interface TcpSessionConfigreturn null if the default system value is usedpublic void setOobInline(boolean oobInline)
setOobInline in interface TcpSessionConfigSocket.setOOBInline(boolean)public Integer getSoLinger()
getSoLinger in interface TcpSessionConfigSocket.getSoLinger(),
Sun Bug Database
return null if the default system value is usedpublic void setSoLinger(int soLinger)
setSoLinger in interface TcpSessionConfigsoLinger - Please specify a negative value to disable SO_LINGER.Socket.setSoLinger(boolean, int),
Sun Bug Databasepublic void setSslContext(SSLContext sslContext)
SSLContex valid for the session. This SSLContex will be used
by the SSLEngine to handle secured connections.SSLContex must have been created and initialized before being injected in
the configuration.SSLContext, the session switch to secured.setSslContext in interface TcpSessionConfigsslContext - The configured SSLContex.public SSLContext getSslContext()
getSslContext in interface TcpSessionConfigSSLContext instance stored in the configuration.public boolean isSecured()
isSecured in interface TcpSessionConfigtrue if the session is securedCopyright © 2009–2013 Apache MINA Project. All rights reserved.