任政委 wrote:
Dear mina dev team
I have a question about the name of method getManagedSessions. Why it
is named managed, does it mean that there is still some sessions out
of control? If that's true, would you kind to tell me what is managed
and what is out of control.
The Javadoc is quite clear about what are those 'managed' sessions :
/**
* Returns the map of all sessions which are currently managed by this
* service. The key of map is the {...@link IoSession#getId() ID} of the
* session.
*
* @return the sessions. An empty collection if there's no session.
*/
'Managed' may not be the best term, but I don't see any other which fits
better.
This method will return the session which have been created for the
associated service. The internal list is updated when a new session is
created, or closed.
Hope it clarifies a bit.
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org