Package org.apache.mina.common
Interface IoAcceptorConfig
- All Superinterfaces:
Cloneable
,IoServiceConfig
- All Known Implementing Classes:
BaseIoAcceptorConfig
,DatagramAcceptorConfig
,SocketAcceptorConfig
A configuration which is used to configure
IoAcceptor
.-
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 disconnectOnUnbind) Sets whether all clients are disconnected when this acceptor unbinds the related local address.Methods inherited from interface org.apache.mina.common.IoServiceConfig
clone, getFilterChain, getFilterChainBuilder, getSessionConfig, getThreadModel, setFilterChainBuilder, setThreadModel
-
Method Details
-
isDisconnectOnUnbind
boolean isDisconnectOnUnbind()Returns true if and only if all clients are disconnected when this acceptor unbinds the related local address. -
setDisconnectOnUnbind
void setDisconnectOnUnbind(boolean disconnectOnUnbind) Sets whether all clients are disconnected when this acceptor unbinds the related local address. The default value is true.
-