1 Reply Latest reply on May 5, 2009 10:43 AM by Manik Surtani

    Feature request: Change in EvictionQueue interface

    Jorge Morales Master

      I have made a custom EvictionPolicy as explained here. Since there has been a new JBC release, I have to remodify released code in order to modify NodeEntry to enable setNumberOfElements to work.
      I think a good change could be to change EvictionQueue to have a method like this one:

      void modifyElementCount(NodeEntry entry, int difference);

      And change NodeEntry with this:
       public void NodeEntry.setNumberOfElements(int numberOfElements)
       if (queue != null)
       int difference = numberOfElements - this.numberOfElements;
       queue.modifyElementCount(this, difference);
       this.numberOfElements = numberOfElements;

      This change also has things in common with this JIRA request