java.lang.Cloneable
, IoAcceptorConfig
, IoServiceConfig
public class SocketAcceptorConfig extends BaseIoAcceptorConfig
IoAcceptorConfig
for SocketAcceptor
.Constructor | Description |
---|---|
SocketAcceptorConfig() |
Creates a new instance.
|
Modifier and Type | Method | 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
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)