You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2006/09/05 12:20:23 UTC

[jira] Resolved: (DIRMINA-238) IoService.add/removeListener()

     [ http://issues.apache.org/jira/browse/DIRMINA-238?page=all ]

Trustin Lee resolved DIRMINA-238.
---------------------------------

    Resolution: Fixed

Notable changes:

* IoServiceListener: You can add or remove listeners by calling IoService.add/removeListener()

http://svn.apache.org/viewvc/directory/trunks/mina/core/src/main/java/org/apache/mina/common/IoServiceListener.java?revision=440315&view=markup

* IoAcceptor.isBound() is replaced with IoService.isManaged()
* IoAcceptor.getBoundAddresses() is replaced with IoService.getManagedServiceAddresses()
* IoAcceptorConfig.disconnectOnUnbind() works much better than before.

I tried to do my best to make IoServiceListener work with both acceptor and connector, and datagram and socket.  But there's a little limitation due to a unresolved issue (DIRMINA-162):

* DatagramAcceptor doesn't fire sessionCreated/sessionDestroyed
* DatagramConnector doesn't fire any events.

> IoService.add/removeListener()
> ------------------------------
>
>                 Key: DIRMINA-238
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-238
>             Project: Directory MINA
>          Issue Type: New Feature
>            Reporter: Trustin Lee
>         Assigned To: Trustin Lee
>            Priority: Minor
>             Fix For: 0.9.5
>
>
> For now, we're providing IoSession.gerManagedSessions() which returns the list of managed sessions.  But this is basically polling which can bring us a lot of overhead.  We could provide an event listener interface that monitors the creation and destruction of IoSessions.

-- 
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