org.apache.mina.common

Interface IoAcceptorConfig

All Superinterfaces:
Cloneable, IoServiceConfig
Known Implementing Classes:
BaseIoAcceptorConfig, DatagramAcceptorConfig, SocketAcceptorConfig

public interface IoAcceptorConfig
extends IoServiceConfig

A configuration which is used to configure IoAcceptor.

Method Summary

boolean
isDisconnectOnUnbind()
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

public boolean isDisconnectOnUnbind()
Returns true if and only if all clients are disconnected when this acceptor unbinds the related local address.

setDisconnectOnUnbind

public void setDisconnectOnUnbind(boolean disconnectOnUnbind)
Sets whether all clients are disconnected when this acceptor unbinds the related local address. The default value is true.