public abstract class AbstractIoServer extends AbstractIoService implements IoServer
IoServer
s.AbstractIoService.ServiceState
config, ioHandlerExecutor
Modifier | Constructor and Description |
---|---|
protected |
AbstractIoServer(IoSessionConfig config,
IoHandlerExecutor eventExecutor)
Create an new AbstractIoServer instance
|
Modifier and Type | Method and Description |
---|---|
IoSessionConfig |
getSessionConfig()
Returns the default configuration of the new
IoSession s created by this service. |
boolean |
isReuseAddress()
Is the reuse address enabled for this server.
|
void |
setReuseAddress(boolean reuseAddress)
Set the reuse address flag on the server socket
|
void |
setSessionConfig(IoSessionConfig config)
Set the default configuration for created TCP sessions
|
fireServiceActivated, fireServiceInactivated, getFilters, getIoHandler, getIoHandlerExecutor, getManagedSessions, initState, isActive, isCreated, isDisposed, isDisposing, isSuspended, setActive, setCreated, setDisposed, setDisposing, setFilters, setIoHandler, setSuspended
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bind, bind, getBoundAddress, unbind
protected AbstractIoServer(IoSessionConfig config, IoHandlerExecutor eventExecutor)
eventExecutor
- used for executing IoHandler event in another pool of thread (not in the low level I/O one).
Use null
if you don't want one. Be careful, the IoHandler processing will block the I/O
operations.public void setReuseAddress(boolean reuseAddress)
reuseAddress
- true
to enablepublic boolean isReuseAddress()
public IoSessionConfig getSessionConfig()
IoSession
s created by this service.getSessionConfig
in interface IoService
IoService
public void setSessionConfig(IoSessionConfig config)
config
- Copyright © 2009–2013 Apache MINA Project. All rights reserved.