org.apache.mina.common.support
Class BaseIoAcceptorConfig

java.lang.Object
  extended by org.apache.mina.common.support.BaseIoServiceConfig
      extended by org.apache.mina.common.support.BaseIoAcceptorConfig
All Implemented Interfaces:
java.lang.Cloneable, IoAcceptorConfig, IoServiceConfig
Direct Known Subclasses:
DatagramAcceptorConfig, SocketAcceptorConfig

public abstract class BaseIoAcceptorConfig
extends BaseIoServiceConfig
implements IoAcceptorConfig

A base implementation of IoAcceptorConfig.


Constructor Summary
protected BaseIoAcceptorConfig()
           
 
Method Summary
 boolean isDisconnectOnUnbind()
          Returns true if and only if all clients are disconnected when this acceptor unbinds the related local address.
 void setDisconnectOnUnbind(boolean disconnectClientsOnUnbind)
          Sets whether all clients are disconnected when this acceptor unbinds the related local address.
 
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, getSessionConfig, getThreadModel, setFilterChainBuilder, setThreadModel
 

Constructor Detail

BaseIoAcceptorConfig

protected BaseIoAcceptorConfig()
Method Detail

isDisconnectOnUnbind

public boolean isDisconnectOnUnbind()
Description copied from interface: IoAcceptorConfig
Returns true if and only if all clients are disconnected when this acceptor unbinds the related local address.

Specified by:
isDisconnectOnUnbind in interface IoAcceptorConfig

setDisconnectOnUnbind

public void setDisconnectOnUnbind(boolean disconnectClientsOnUnbind)
Description copied from interface: IoAcceptorConfig
Sets whether all clients are disconnected when this acceptor unbinds the related local address. The default value is true.

Specified by:
setDisconnectOnUnbind in interface IoAcceptorConfig