[
http://jira.jboss.com/jira/browse/JBCACHE-841?page=comments#action_12417661 ]
Manik Surtani commented on JBCACHE-841:
---------------------------------------
Leaning towards an approach where you can specify if a node contains ordered data or
ordered children. By default this is false. Can be a cfg option to enable this cache
wide.
Node.isDataOrdered(); // tests if the data map is ordered
Node.isChildrenOrdered(); // tests if the child map is ordered
Node.setDataOrdered(boolean b); // locks the map, and then copies out the existing data
map into a new ordered map structure
Node.setChildrenOrdered(boolean b); // similar to above
SortedNode sn = Node.getSortedNode(); // retrieves a sub-interface of Node that has added
methods. Throws an exception if the node doesn't have sorted data or children.
Be able to set the internal ordering of child nodes and data keys
-----------------------------------------------------------------
Key: JBCACHE-841
URL:
http://jira.jboss.com/jira/browse/JBCACHE-841
Project: JBoss Cache
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Reporter: Elias Ross
Assigned To: Manik Surtani
Fix For: 3.0.0
Attachments: OrderedNode.java
I believe that this issue is required to resolve JBCACHE-166 satisfactorily.
But it would also be a useful (and easily added) feature for JBossCache 2.0.
The attached .java file explains two additional methods to add.
The internal implementation would likely need to rely on the JDK1.6
java.util.concurrent.ConcurrentSkipListSet and Map implementations to work without change
to other code that rely on iteration to work on concurrently modified sets.
As JDK 1.6 is new, this might require use of
http://dcl.mathcs.emory.edu/util/backport-util-concurrent/doc/api/ for now, or support
from the jbossretro to change these JDK1.6 classes to use the backport for 1.5.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira