public class SocketAcceptorConfig
extends org.apache.mina.common.support.BaseIoAcceptorConfig
IoAcceptorConfig
for SocketAcceptor
.Constructor and Description |
---|
SocketAcceptorConfig()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getBacklog() |
SocketSessionConfig |
getSessionConfig()
Resturns the default configuration of the new
IoSession s. |
boolean |
isReuseAddress() |
void |
setBacklog(int backlog) |
void |
setReuseAddress(boolean reuseAddress) |
isDisconnectOnUnbind, setDisconnectOnUnbind
clone, getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModel
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModel
public SocketAcceptorConfig()
RuntimeIOException
- if failed to get the default configurationpublic SocketSessionConfig getSessionConfig()
IoServiceConfig
IoSession
s.public boolean isReuseAddress()
ServerSocket.getReuseAddress()
public void setReuseAddress(boolean reuseAddress)
ServerSocket.setReuseAddress(boolean)
public int getBacklog()
public void setBacklog(int backlog)
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.