Class SocketAcceptorConfig
java.lang.Object
org.apache.mina.common.support.BaseIoServiceConfig
org.apache.mina.common.support.BaseIoAcceptorConfig
org.apache.mina.transport.socket.nio.SocketAcceptorConfig
- All Implemented Interfaces:
Cloneable,IoAcceptorConfig,IoServiceConfig
An
IoAcceptorConfig for SocketAcceptor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintResturns the default configuration of the newIoSessions.booleanvoidsetBacklog(int backlog) voidsetReuseAddress(boolean reuseAddress) Methods inherited from class org.apache.mina.common.support.BaseIoAcceptorConfig
isDisconnectOnUnbind, setDisconnectOnUnbindMethods 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, getThreadModel, setFilterChainBuilder, setThreadModel
-
Constructor Details
-
SocketAcceptorConfig
public SocketAcceptorConfig()Creates a new instance.- Throws:
RuntimeIOException- if failed to get the default configuration
-
-
Method Details
-
getSessionConfig
Description copied from interface:IoServiceConfigResturns the default configuration of the newIoSessions. -
isReuseAddress
public boolean isReuseAddress()- See Also:
-
setReuseAddress
public void setReuseAddress(boolean reuseAddress) - See Also:
-
getBacklog
public int getBacklog() -
setBacklog
public void setBacklog(int backlog)
-