Package com.hazelcast.map
Interface MapEvictionPolicyComparator<K,V>
-
- Type Parameters:
K
- type of the keyV
- type of the value
- All Superinterfaces:
java.util.Comparator<EntryView<K,V>>
,EvictionPolicyComparator<K,V,EntryView<K,V>>
,java.io.Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MapEvictionPolicyComparator<K,V> extends EvictionPolicyComparator<K,V,EntryView<K,V>>
IMap
specificEvictionPolicyComparator
for comparingEntryView
s to be evicted.Implementors of the comparator have to implement
equals
andhashCode
methods to support correct config comparison.Note that you may need to enable per entry stats via
MapConfig.setPerEntryStatsEnabled(boolean)
to see all fields of entry view in your implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
compare(EntryView<K,V> o1, EntryView<K,V> o2)
Compares the givenEntryView
instances and returns the result.
-
-
-
Method Detail
-