public class LFUEvictionPolicy extends MapEvictionPolicy
IMap
Modifier and Type | Field and Description |
---|---|
static LFUEvictionPolicy |
INSTANCE
LFU eviction policy instance.
|
Constructor and Description |
---|
LFUEvictionPolicy() |
Modifier and Type | Method and Description |
---|---|
int |
compare(EntryView entryView1,
EntryView entryView2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final LFUEvictionPolicy INSTANCE
public int compare(EntryView entryView1, EntryView entryView2)
MapEvictionPolicy
If you prefer to evict the 1st entry then return negative number, if the 2nd entry is a better candidate then return a positive number or return 0 if both entries are equally good candidates for eviction
compare
in class MapEvictionPolicy
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.