mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Vermillard (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRMINA-252) SessionLifecycleListener for listeneing an IoService for listening created/closed sessions
Date Tue, 05 Sep 2006 07:11:22 GMT
SessionLifecycleListener for listeneing an IoService for listening created/closed sessions
------------------------------------------------------------------------------------------

                 Key: DIRMINA-252
                 URL: http://issues.apache.org/jira/browse/DIRMINA-252
             Project: Directory MINA
          Issue Type: Improvement
            Reporter: Julien Vermillard


For collecting stats on sessions, we need to listen IoService for know when new session are
spawned or closed. With current API the only way is to poll the IoService.getManagedSession();

A listener system could be more efficient :

public interface SessionLifecycleListener {
   sessionCreated(IoSession session);
   sessionOpened(IoSession session);
   sessionClosed(IoSession session);
}

and the famous add/removeSessionLifeCycleListener in IoService

WDYT ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message