public abstract class AbstractIoServer extends AbstractIoService implements IoServer
IoServers.AbstractIoService.ServiceStateconfig, 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
IoSessions 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, setSuspendedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbind, bind, getBoundAddress, unbindprotected 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()
IoSessions created by this service.getSessionConfig in interface IoServiceIoServicepublic void setSessionConfig(IoSessionConfig config)
config - Copyright © 2009–2013 Apache MINA Project. All rights reserved.