2 Replies Latest reply on Jun 29, 2010 1:44 AM by infini8

    Eviction Strategy

    infini8

      Hi,

      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??

       

      Thanks in advance,

        • 1. Re: Eviction Strategy
          mircea.markus

          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

            Thanks a lot Mircea, I'll log it in JIRA