public abstract class AbstractUdpServer extends AbstractIoServer implements IoClient
AbstractIoService.ServiceState
config, ioHandlerExecutor
Modifier | Constructor and Description |
---|---|
protected |
AbstractUdpServer(IoHandlerExecutor ioHandlerExecutor)
Create an new AbsractUdpServer instance
|
protected |
AbstractUdpServer(UdpSessionConfig config,
IoHandlerExecutor ioHandlerExecutor)
Create an new AbsractUdpServer instance
|
Modifier and Type | Method and Description |
---|---|
UdpSessionConfig |
getSessionConfig()
Returns the default configuration of the new
IoSession s created by this service. |
void |
initSecured(IoSession session) |
void |
setSessionConfig(UdpSessionConfig config) |
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 AbstractUdpServer(IoHandlerExecutor ioHandlerExecutor)
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 AbstractUdpServer(UdpSessionConfig config, IoHandlerExecutor ioHandlerExecutor)
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 void initSecured(IoSession session) throws SSLException
SSLException
public UdpSessionConfig getSessionConfig()
IoSession
s created by this service.getSessionConfig
in interface IoService
getSessionConfig
in class AbstractIoServer
IoService
public void setSessionConfig(UdpSessionConfig config)
Copyright © 2009–2013 Apache MINA Project. All rights reserved.