ariba.util.core
Class LinearLRUHashtable
java.lang.Object
ariba.util.core.LRUHashtable
ariba.util.core.LinearLRUHashtable
public class LinearLRUHashtable
- extends LRUHashtable
Provides an LRUHashtable that uses linear growth (the LRUHashtable class
uses exponential growth).
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 |
LinearLRUHashtable
public LinearLRUHashtable(java.lang.String name,
int initialEntries,
int targetEntries,
int purgeMargin,
int growthAmount,
double maxLoad,
LRURemoveListener removeListener)
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.