|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.eviction.LFUQueue.LFUComparator
protected static class LFUQueue.LFUComparator
Comparator class for LFU.
This class will sort the eviction queue in the correct eviction order. The top of the list should evict before the bottom of the list. The sort is based on ascending order of nodeVisits. Note: this class has a natural ordering that is inconsistent with equals as defined by the java.lang.Comparator contract.
Constructor Summary | |
---|---|
protected |
LFUQueue.LFUComparator()
|
Method Summary | |
---|---|
int |
compare(NodeEntry ne1,
NodeEntry ne2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
protected LFUQueue.LFUComparator()
Method Detail |
---|
public int compare(NodeEntry ne1, NodeEntry ne2)
compare
in interface java.util.Comparator<NodeEntry>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |