Skip navigation links

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

B28401-02


oracle.spatial.network.lod
Interface CachingHandler

All Known Implementing Classes:
LRUCachingHandler

public interface CachingHandler

This interface defines the methods supported by a caching handler.

Since:
11gR1

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

 

Method Detail

getPartitionsToFlushOut

int[] getPartitionsToFlushOut(java.util.HashSet<java.lang.Integer> residentPartitions,
                              int minNumNodesToFlushOut)
                              throws LODNetworkException
Retruns the IDs of the partitions to be flushed out.
Parameters:
residentPartitions - resident partitions, which are the partitions to be excluded from the returned list.
Returns:
IDs of the partitions to be flushed out.
Throws:
LODNetworkException

updateRank

void updateRank(LogicalPartition partition)
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.
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-02


Copyright © 2007, 2008, Oracle. All Rights Reserved.