Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)
B28401-01


oracle.spatial.network.lod
Class LRUCachingHandler

java.lang.Object
  extended by oracle.spatial.network.lod.LRUCachingHandler

All Implemented Interfaces:
CachingHandler

public class LRUCachingHandler
extends java.lang.Object
implements CachingHandler

This class implements the Least Recently Used (LRU) caching handler.

Since:
11gR1

Constructor Summary
LRUCachingHandler()
           

 

Method Summary
 int[] getPartitionsToFlushOut(java.util.HashSet<java.lang.Integer> residentPartitions)
          Retruns the IDs of the partitions to be flushed out.
 void updateRank(LogicalPartition partition)
          Updates the rank of the partition in the cache.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

LRUCachingHandler

public LRUCachingHandler()

Method Detail

getPartitionsToFlushOut

public int[] getPartitionsToFlushOut(java.util.HashSet<java.lang.Integer> residentPartitions)
Description copied from interface: CachingHandler
Retruns the IDs of the partitions to be flushed out.
Specified by:
getPartitionsToFlushOut in interface CachingHandler
Parameters:
residentPartitions - resident partitions, which are the partitions to be excluded from the returned list.
Returns:
IDs of the partitions to be flushed out.

updateRank

public void updateRank(LogicalPartition partition)
Description copied from interface: CachingHandler
Updates the rank of the partition in the cache. The rank will be used to determin which partitions to be flushed out of the cache when getPartitionsToFlushOut() is called.
Specified by:
updateRank in interface CachingHandler
Parameters:
partition - the partition object whose rank is to be updated

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)
B28401-01


Copyright © 2007, Oracle. All Rights Reserved.