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:
java.lang.Cloneable,IoAcceptorConfig,IoServiceConfig
public class SocketAcceptorConfig extends BaseIoAcceptorConfig
AnIoAcceptorConfigforSocketAcceptor.
-
-
Constructor Summary
Constructors Constructor Description SocketAcceptorConfig()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBacklog()SocketSessionConfiggetSessionConfig()Resturns the default configuration of the newIoSessions.booleanisReuseAddress()voidsetBacklog(int backlog)voidsetReuseAddress(boolean reuseAddress)-
Methods inherited from class org.apache.mina.common.support.BaseIoAcceptorConfig
isDisconnectOnUnbind, setDisconnectOnUnbind
-
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, getThreadModel, setFilterChainBuilder, setThreadModel
-
-
-
-
Constructor Detail
-
SocketAcceptorConfig
public SocketAcceptorConfig()
Creates a new instance.- Throws:
RuntimeIOException- if failed to get the default configuration
-
-
Method Detail
-
getSessionConfig
public SocketSessionConfig getSessionConfig()
Description copied from interface:IoServiceConfigResturns the default configuration of the newIoSessions.
-
isReuseAddress
public boolean isReuseAddress()
- See Also:
ServerSocket.getReuseAddress()
-
setReuseAddress
public void setReuseAddress(boolean reuseAddress)
- See Also:
ServerSocket.setReuseAddress(boolean)
-
getBacklog
public int getBacklog()
-
setBacklog
public void setBacklog(int backlog)
-
-