org.apache.mina.transport.socket.nio
Class SocketAcceptorConfig

java.lang.Object
  extended by org.apache.mina.common.support.BaseIoServiceConfig
      extended by org.apache.mina.common.support.BaseIoAcceptorConfig
          extended by 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: 436993 $, $Date: 2006-08-26 00:36:56 +0200 (Sat, 26 Aug 2006) $
Author:
The Apache Directory Project (mina-dev@directory.apache.org)

Constructor Summary
SocketAcceptorConfig()
          Creates a new instance.
 
Method Summary
 int getBacklog()
           
 IoSessionConfig getSessionConfig()
          Resturns the default configuration of the new IoSessions.
 boolean isReuseAddress()
           
 void setBacklog(int backlog)
           
 void setReuseAddress(boolean reuseAddress)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.mina.common.IoServiceConfig
clone, getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModel
 

Constructor Detail

SocketAcceptorConfig

public SocketAcceptorConfig()
Creates a new instance.

Throws:
RuntimeIOException - if failed to get the default configuration
Method Detail

getSessionConfig

public IoSessionConfig getSessionConfig()
Description copied from interface: IoServiceConfig
Resturns the default configuration of the new IoSessions.


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-2010 Apache MINA Project. All Rights Reserved.