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 TypeMethodDescriptionboolean
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 Details
-
BaseIoAcceptorConfig
protected BaseIoAcceptorConfig()
-
-
Method Details
-
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
-