org.geotools.caching
Interface EvictionPolicy

All Known Implementing Classes:
LRUEvictionPolicy

public interface EvictionPolicy

Eviction policy interface. Used to determine which items are removed from the cache when the maximum cache size is reached.


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.
 

Method Detail

evict

boolean evict()
Removes the node from next node in the policy from the cache.

Returns:
false if nothing to evict; otherwise returns true

access

void access(NodeIdentifier node)
Called when a node is accessed.

Parameters:
node - node accessed


Copyright © 1996-2010 Geotools. All Rights Reserved.