Interface CacheEvictionPolicyComparator<K,​V>

    • Method Detail

      • compare

        int compare​(CacheEntryView<K,​V> o1,
                    CacheEntryView<K,​V> o2)
        Compares the given CacheEntryView instances and returns the result. The result should be one of
        • -1: first entry has higher priority to be evicted
        • 1: second entry has higher priority to be evicted
        • 0: both entries have same priority
        Specified by:
        compare in interface java.util.Comparator<K>
        Parameters:
        o1 - the first CacheEntryView instance to be compared
        o2 - the second CacheEntryView instance to be compared
        Returns:
        the result of comparison