I've found the answer to my own question.

Looks like the only time a node is considered to have been "visited" is if you 
make the call TreeCache.get(Fqn fqn,Object key). 

If you do the functionally equivalent call by calling TreeCache.get(Fqn) and 
then asking the returned node for its data, eviction still occurs.


  | // eviction doesn't happen if you do it this way
  | myCache.get(fqn,key);
  | 
  | // this allows eviction to happens
  | myCache.get(fqn).getData().get(key);

Is this a bug, or performing as designed?

In my situation, I need to a portion of the tree and examining the data of the 
node as I go. These count as "visits" to me.

Thanks,

Brian.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866734#3866734

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866734


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to