public abstract class AbstractTcpServer extends AbstractIoServer
AbstractIoService.ServiceState
config, 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
IoSession s created by this service. |
void |
setSessionConfig(TcpSessionConfig config)
Set the default configuration for created TCP sessions
|
isReuseAddress, setReuseAddress, setSessionConfig
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 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()
IoSession
s created by this service.getSessionConfig
in interface IoService
getSessionConfig
in class AbstractIoServer
IoService
public void setSessionConfig(TcpSessionConfig config)
config
- Copyright © 2009–2013 Apache MINA Project. All rights reserved.