1 Reply Latest reply on Apr 6, 2006 7:41 AM by ben.wang

    Implementing custom eviction policies

    dycheng

      Hi,

      I'm new to this forum so if I'm asking an inappropriate question please let me know.

      I'm using jboss 4.0.1 and the jboss cache jar that comes with should be 1.2.4.

      I attempted to implement a custom eviction policy for TreeCache because the default LRU behavior doesn't suite my needs. However, looking at the TreeCache source code I see that the eviction policy class must be of type LRUPolicy (or a subclass of it), however many "members of interest" within LRUPolicy are defined as private. The same applies to classes RegionManager and Region. I'm wondering if there's a good way to get around this in order to implement a custom eviction policy

      thanks

      Dave