|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.caching.LRUEvictionPolicy
public class LRUEvictionPolicy
Least-Recently Used Eviction Policy
Removes the oldest items from the cache.
Constructor Summary | |
---|---|
LRUEvictionPolicy(EvictableTree tree)
|
Method Summary | |
---|---|
void |
access(NodeIdentifier node)
Called when a node is accessed. |
boolean |
evict()
Removes the node from next node in the policy from the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LRUEvictionPolicy(EvictableTree tree)
Method Detail |
---|
public boolean evict()
EvictionPolicy
evict
in interface EvictionPolicy
public void access(NodeIdentifier node)
EvictionPolicy
access
in interface EvictionPolicy
node
- node accessed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |