This content has been marked as final.
Show 2 replies
-
1. Re: Eviction Strategy
mircea.markus Jun 28, 2010 11:19 AM (in response to infini8)Is there any way to modify/extend the eviction strategy?
From the wiki & Javadocs I understand that, extending the DataContainer would be the way to go. But, where do I plugin the new class??
There's no way to do that through the configuration at the moment. Mind creating a JIRA just for that?
I can suggest you a programatic approach, though:
DataContainer yourContainer = buildCustomContainer(); AdvancedCache ac = cache.getAdvancedCache(); ac.getComponentRegistry().registerComponent(yourContainer, DataContainer.class); ac.getComponentRegistry().rewire();
Your custom container should replace the existing container this way.
-
2. Re: Eviction Strategy
infini8 Jun 29, 2010 1:44 AM (in response to mircea.markus)Thanks a lot Mircea, I'll log it in JIRA