This content has been marked as final.
Show 2 replies
-
1. Re: Removal policies
manik Mar 29, 2007 5:44 AM (in response to genman)It should be easy enough to implement (a flag in the eviction region that causes a removal rather than an eviction when triggered) but I'm concerned that this would confuse the whole purpose of eviction, as you said.
Again, is this something generic enough to build in as a feature? It can easily enough be worked around in client code. -
2. Re: Removal policies
genman Mar 30, 2007 4:39 PM (in response to genman)
Eviction is really designed around memory management, and thus is asynchronous, and really has no firm guarantees that eviction will happen at a certain moment.
If I were to implement this without any facilities in JBossCache, I would probably create an external timer and my own method call interceptor.
I took a stab at it, and it's a lot more difficult than I thought ...