Interface ConfigurableCacheMap.EvictionPolicy

    • Method Detail

      • entryTouched

        void entryTouched​(ConfigurableCacheMap.Entry entry)
        This method is called by the cache to indicate that an entry has been touched.
        Parameters:
        entry - the Cache Entry that has been touched
      • requestEviction

        void requestEviction​(int cMaximum)
        This method is called by the cache when the cache requires the eviction policy to evict entries.
        Parameters:
        cMaximum - the maximum number of units that should remain in the cache when the eviction is complete
      • getName

        String getName()
        Obtain the name of the eviction policy. This is intended to be human readable for use in a monitoring tool; examples include "LRU" and "LFU".
        Returns:
        the name of the eviction policy