org.apache.mina.io.socket
Class SocketSessionConfig
java.lang.Object
org.apache.mina.common.BaseSessionConfig
org.apache.mina.io.socket.SocketSessionConfig
- All Implemented Interfaces:
- SessionConfig
public class SocketSessionConfig
- extends BaseSessionConfig
A SessionConfig
for socket transport (TCP/IP).
You can downcast SessionConfig
instance returned by
Session.getConfig()
or Session.getConfig()
if you've created datagram session using SocketAcceptor
or
SocketConnector
.
- Version:
- $Rev: 357871 $, $Date: 2005-12-20 10:56:40 +0900 (Tue, 20 Dec 2005) $,
- Author:
- The Apache Directory Project (dev@directory.apache.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getKeepAlive
public boolean getKeepAlive()
throws SocketException
- Throws:
SocketException
setKeepAlive
public void setKeepAlive(boolean on)
throws SocketException
- Throws:
SocketException
getOOBInline
public boolean getOOBInline()
throws SocketException
- Throws:
SocketException
setOOBInline
public void setOOBInline(boolean on)
throws SocketException
- Throws:
SocketException
getReuseAddress
public boolean getReuseAddress()
throws SocketException
- Throws:
SocketException
setReuseAddress
public void setReuseAddress(boolean on)
throws SocketException
- Throws:
SocketException
getSoLinger
public int getSoLinger()
throws SocketException
- Throws:
SocketException
setSoLinger
public void setSoLinger(boolean on,
int linger)
throws SocketException
- Throws:
SocketException
getTcpNoDelay
public boolean getTcpNoDelay()
throws SocketException
- Throws:
SocketException
setTcpNoDelay
public void setTcpNoDelay(boolean on)
throws SocketException
- Throws:
SocketException
getTrafficClass
public int getTrafficClass()
throws SocketException
- Throws:
SocketException
setTrafficClass
public void setTrafficClass(int tc)
throws SocketException
- Throws:
SocketException
getSendBufferSize
public int getSendBufferSize()
throws SocketException
- Throws:
SocketException
setSendBufferSize
public void setSendBufferSize(int size)
throws SocketException
- Throws:
SocketException
getReceiveBufferSize
public int getReceiveBufferSize()
throws SocketException
- Throws:
SocketException
setReceiveBufferSize
public void setReceiveBufferSize(int size)
throws SocketException
- Throws:
SocketException
getSessionReceiveBufferSize
public int getSessionReceiveBufferSize()
setSessionReceiveBufferSize
public void setSessionReceiveBufferSize(int size)
Copyright © 2004-2005 . All Rights Reserved.