You should be fine; TreeCache is thread-safe.
many thanks bela
there are two queues in a Region: nodeQueue and eventQueue. i understand that the BoundedBuffer is thread-safe. however, since there are two queues that are being operated on, it seems like there is a potential race in Region.putNodeEvent and LRUAlgorithm.processQueues. is there a bit of higher-level synchronization going on that i don't see?
thanks for any insight.
This is indeed a potential problem that I have been planned to correct. :-) Anway, I have just refactored the eviction policy part and checked them into jboss-head. The fix will be available in release 1.1.