Package org.apache.mina.common.support
Class BaseIoAcceptorConfig
- java.lang.Object
-
- org.apache.mina.common.support.BaseIoServiceConfig
-
- 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 ofIoAcceptorConfig.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseIoAcceptorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDisconnectOnUnbind()Returns true if and only if all clients are disconnected when this acceptor unbinds the related local address.voidsetDisconnectOnUnbind(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
-
-
-
-
Method Detail
-
isDisconnectOnUnbind
public boolean isDisconnectOnUnbind()
Description copied from interface:IoAcceptorConfigReturns true if and only if all clients are disconnected when this acceptor unbinds the related local address.- Specified by:
isDisconnectOnUnbindin interfaceIoAcceptorConfig
-
setDisconnectOnUnbind
public void setDisconnectOnUnbind(boolean disconnectClientsOnUnbind)
Description copied from interface:IoAcceptorConfigSets whether all clients are disconnected when this acceptor unbinds the related local address. The default value is true.- Specified by:
setDisconnectOnUnbindin interfaceIoAcceptorConfig
-
-