public abstract class AbstractTcpServer extends AbstractIoServer
AbstractIoService.ServiceStateconfig, ioHandlerExecutor| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTcpServer(IoHandlerExecutor eventExecutor)
Create an new AbsractTcpServer instance
|
protected |
AbstractTcpServer(TcpSessionConfig config,
IoHandlerExecutor eventExecutor)
Create an new AbsractTcpServer instance, with a specific configuration
|
| Modifier and Type | Method and Description |
|---|---|
TcpSessionConfig |
getSessionConfig()
Returns the default configuration of the new
IoSessions created by this service. |
void |
setSessionConfig(TcpSessionConfig config)
Set the default configuration for created TCP sessions
|
isReuseAddress, setReuseAddress, setSessionConfigfireServiceActivated, 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 AbstractTcpServer(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.protected AbstractTcpServer(TcpSessionConfig config, IoHandlerExecutor eventExecutor)
sessionConfig - The configuration to use for this servereventExecutor - 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 TcpSessionConfig getSessionConfig()
IoSessions created by this service.getSessionConfig in interface IoServicegetSessionConfig in class AbstractIoServerIoServicepublic void setSessionConfig(TcpSessionConfig config)
config - Copyright © 2009–2013 Apache MINA Project. All rights reserved.