public abstract class Nio2Service extends Object implements IoService
Modifier and Type | Field and Description |
---|---|
protected AtomicBoolean |
disposing |
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,
AsynchronousChannelGroup group) |
Modifier and Type | Method and Description |
---|---|
CloseFuture |
close(boolean immediately)
Close this resource asynchronously and return a future.
|
void |
dispose() |
protected void |
doDispose() |
Map<Long,IoSession> |
getManagedSessions()
Returns the map of all sessions which are currently managed by this
service.
|
void |
sessionClosed(Nio2Session session) |
protected final org.slf4j.Logger logger
protected final FactoryManager manager
protected final IoHandler handler
protected final AtomicBoolean disposing
protected final AsynchronousChannelGroup group
protected Nio2Service(FactoryManager manager, IoHandler handler, AsynchronousChannelGroup group)
protected void doDispose()
public CloseFuture close(boolean immediately)
Closeable
public Map<Long,IoSession> getManagedSessions()
IoService
ID
of the
session.getManagedSessions
in interface IoService
public void sessionClosed(Nio2Session session)
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.