Java Doc for IoService.java in » Net » mina-2.0.0-M1 » org » apache » mina » common » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Base interface for all
IoAcceptor s and
IoConnector s
that provide I/O service and manage
IoSession s.
author: The Apache MINA Project (dev@mina.apache.org) version: $Rev: 606098 $, $Date: 2007-12-20 22:11:58 -0700 (Thu, 20 Dec 2007) $
getCumulativeManagedSessionCount() Returns the cumulative number of sessions which were managed (or are
being managed) by this service, which means 'currently managed session
count + closed session count'.
getHandler() Returns the handler which will handle all connections managed by this service.
int
getIdleCount(IdleStatus status) Returns the number of the fired continuous serviceIdle events
for the specified
IdleStatus .
If serviceIdle event is fired first after some time after I/O,
idleCount becomes 1.
int
getIdleTime(IdleStatus status) Returns idle time for the specified type of idleness in seconds.
Returns the time when this service was activated. It returns the last
time when this service was activated if the service is not active now.
The time by using System.currentTimeMillis
Returns the cumulative number of sessions which were managed (or are
being managed) by this service, which means 'currently managed session
count + closed session count'.
Returns the number of the fired continuous serviceIdle events
for the specified
IdleStatus .
If serviceIdle event is fired first after some time after I/O,
idleCount becomes 1. idleCount resets to
0 if any I/O occurs again, otherwise it increases to
2 and so on if serviceIdle event is fired again without
any I/O between two (or more) serviceIdle events.
Returns true if and if only
IoService.dispose() method has
been called. Please note that this method will return true
even after all the related resources are released.