ariba.util.core
Class LinearLRUHashtable

java.lang.Object
  extended by ariba.util.core.LRUHashtable
      extended by ariba.util.core.LinearLRUHashtable

public class LinearLRUHashtable
extends LRUHashtable

Provides an LRUHashtable that uses linear growth (the LRUHashtable class uses exponential growth).


Field Summary
 
Fields inherited from class ariba.util.core.LRUHashtable
inUse, lock
 
Constructor Summary
LinearLRUHashtable(java.lang.String name, int initialEntries, int targetEntries, int purgeMargin, int growthAmount, double maxLoad, LRURemoveListener removeListener)
           
 
Method Summary
 boolean purgeOneItem()
          Removes the oldest item from the hashtable and returns true if more items need purging.
 
Methods inherited from class ariba.util.core.LRUHashtable
addKeysTo, addValuesTo, allKeys, allValues, clear, dump, dumpInOrder, dumpLRUStats, dumpSummary, entries, get, getHits, getLookups, getOldestKey, getTotalInUseEntries, peek, purgeOldestEntries, put, remove, removeOldest, sane
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearLRUHashtable

public LinearLRUHashtable(java.lang.String name,
                          int initialEntries,
                          int targetEntries,
                          int purgeMargin,
                          int growthAmount,
                          double maxLoad,
                          LRURemoveListener removeListener)
Method Detail

purgeOneItem

public boolean purgeOneItem()
Removes the oldest item from the hashtable and returns true if more items need purging.



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.