directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-42) SessionManagers should manage list of sessions being managed.
Date Sun, 18 Dec 2005 16:14:35 GMT
    [ http://issues.apache.org/jira/browse/DIRMINA-42?page=comments#action_12360738 ] 

Trustin Lee commented on DIRMINA-42:
------------------------------------

Creating unmodifiable collection will get very tricky because we'll not be able to iterate
it if we wrapped the original collection simply; iteration loop will definitely throw a ConcurrentModificationException.
 So we need to compromise here.

1. Create a special data structure which can be iterated without synchronization
2. MINA returns a copy of the collection

I think the first one is the best.  We'll also have to provide a way to synchronize with MINA
in case users don't want to see that ghost sessions(which is already closed) are returned.



> SessionManagers should manage list of sessions being managed.
> -------------------------------------------------------------
>
>          Key: DIRMINA-42
>          URL: http://issues.apache.org/jira/browse/DIRMINA-42
>      Project: Directory MINA
>         Type: New Feature
>     Versions: 0.7
>     Reporter: Trustin Lee
>     Assignee: Niklas Therning
>      Fix For: 0.9.1
>  Attachments: DIRMINA-42.zip
>
> Users are maintaining the list of managed sessions in acceptors and connectors.  It will
be much better if MINA can handle this.

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