Methods Summary |
---|
public void | add(java.lang.Object key, java.lang.Object value)add the given value to the cache at the specified key
|
public void | add(java.lang.Object key, java.lang.Object value, int size)add the given value with specified size to the cache at specified key
|
public void | addCacheListener(CacheListener listener)add the cache module listener
|
public int | clear()clear all the entries from the cache.
|
public void | clearStats()clear all stats
|
public boolean | contains(java.lang.Object key)check if the cache contains the item at the key
|
public void | destroy()Destroys this cache. This method should perform final clean ups.
|
public java.util.Enumeration | elements()get an Enumeration for the keys stored in the cache
|
public java.lang.Object | get(java.lang.Object key)get the item stored at the key.
|
public java.util.Iterator | getAll(java.lang.Object key)get all the items with the given key.
|
public int | getEntryCount()get the number of entries in the cache
|
public int | getIndex(java.lang.Object key)get the index of the item given a key
|
public java.lang.Object | getStatByName(java.lang.String key)get the desired statistic counter
|
public java.util.Map | getStats()get the stats snapshot
|
public void | init(int maxEntries, float loadFactor, java.util.Properties props)initialize the cache
|
public void | init(int maxEntries, java.util.Properties props)initialize the cache with the default load factor (0.75)
|
public boolean | isEmpty()is this cache empty?
|
public java.util.Iterator | keys()get an Iterator for the keys stored in the cache
|
public void | notifyRefresh(int index)notify threads waiting for a refresh on the object associated with the key
|
public java.lang.Object | put(java.lang.Object key, java.lang.Object value)cache the given value at the specified key and return previous value
|
public java.lang.Object | put(java.lang.Object key, java.lang.Object value, int size)cache the given value at the specified key and return previous value
|
public java.lang.Object | remove(java.lang.Object key)remove the item with the given key.
|
public java.lang.Object | remove(java.lang.Object key, java.lang.Object value)remove the given value stored at the key.
|
public void | removeAll(java.lang.Object key)remove all the item with the given key.
|
public void | trimExpiredEntries(int maxCount)trim the expired entries from the cache.
|
public java.util.Iterator | values()get an Iterator for the values stored in the cache
|
public boolean | waitRefresh(int index)wait for a refresh on the object associated with the key
|