org.apache.mina.transport.socket.nio
Class SocketAcceptorConfig
java.lang.Object
org.apache.mina.common.support.BaseIoServiceConfig
org.apache.mina.common.support.BaseIoAcceptorConfig
org.apache.mina.transport.socket.nio.SocketAcceptorConfig
- All Implemented Interfaces:
- Cloneable, IoAcceptorConfig, IoServiceConfig
public class SocketAcceptorConfig
- extends org.apache.mina.common.support.BaseIoAcceptorConfig
An IoAcceptorConfig
for SocketAcceptor
.
- Version:
- $Rev: 587373 $, $Date: 2007-10-23 04:54:05 +0200 (Tue, 23 Oct 2007) $
- Author:
- The Apache Directory Project (mina-dev@directory.apache.org)
Methods inherited from class org.apache.mina.common.support.BaseIoAcceptorConfig |
isDisconnectOnUnbind, setDisconnectOnUnbind |
Methods inherited from class org.apache.mina.common.support.BaseIoServiceConfig |
clone, getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModel |
SocketAcceptorConfig
public SocketAcceptorConfig()
- Creates a new instance.
- Throws:
RuntimeIOException
- if failed to get the default configuration
getSessionConfig
public SocketSessionConfig getSessionConfig()
- Description copied from interface:
IoServiceConfig
- Resturns the default configuration of the new
IoSession
s.
isReuseAddress
public boolean isReuseAddress()
- See Also:
ServerSocket.getReuseAddress()
setReuseAddress
public void setReuseAddress(boolean reuseAddress)
- See Also:
ServerSocket.setReuseAddress(boolean)
getBacklog
public int getBacklog()
setBacklog
public void setBacklog(int backlog)
Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.