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:
Cloneable,IoAcceptorConfig,IoServiceConfig
- Direct Known Subclasses:
DatagramAcceptorConfig,SocketAcceptorConfig
A base implementation of
IoAcceptorConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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, setThreadModelMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.mina.common.IoServiceConfig
clone, getFilterChain, getFilterChainBuilder, getSessionConfig, getThreadModel, setFilterChainBuilder, setThreadModel
-
Constructor Details
-
BaseIoAcceptorConfig
protected BaseIoAcceptorConfig()
-
-
Method Details
-
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
-