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

    Eviction Strategy

    infini8 infini8 Newbie

      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 Master

          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 infini8 Newbie

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