Class OldCache.InternalEvictionPolicy

    • Method Detail

      • requestEviction

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

        public 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".
        Specified by:
        getName in interface ConfigurableCacheMap.EvictionPolicy
        Returns:
        the name of the eviction policy
      • getEvictionType

        public int getEvictionType()
        Determine the OldCache eviction type represented by this InternalEvictionPolicy.
        Returns:
        one of the EVICTION_POLICY_* constants