public class SocketAcceptorConfig extends BaseIoAcceptorConfig
IoAcceptorConfig
for SocketAcceptor
.构造器和说明 |
---|
SocketAcceptorConfig()
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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)