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 protected
BaseIoAcceptorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 interfaceIoAcceptorConfig
-
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 interfaceIoAcceptorConfig
-
-