public abstract class Nio2Service extends Object implements IoService
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
disposing |
protected ExecutorService |
executor |
protected AsynchronousChannelGroup |
group |
protected IoHandler |
handler |
protected org.slf4j.Logger |
logger |
protected FactoryManager |
manager |
protected Map<Long,IoSession> |
sessions |
| Modifier | Constructor and Description |
|---|---|
protected |
Nio2Service(FactoryManager manager,
IoHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected void |
doDispose() |
Map<Long,IoSession> |
getManagedSessions()
Returns the map of all sessions which are currently managed by this
service.
|
int |
getNioWorkers() |
void |
sessionClosed(Nio2Session session) |
protected final org.slf4j.Logger logger
protected final FactoryManager manager
protected final IoHandler handler
protected final ExecutorService executor
protected final AsynchronousChannelGroup group
protected final AtomicBoolean disposing
protected Nio2Service(FactoryManager manager, IoHandler handler)
public int getNioWorkers()
protected void doDispose()
public Map<Long,IoSession> getManagedSessions()
IoServiceID of the
session.getManagedSessions in interface IoServicepublic void sessionClosed(Nio2Session session)
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.