org.castor.cache.hashbelt.container
public final class WeakReferenceContainer extends Object implements Container
Note that keys are hard references; in a situation where OutOfMemory will occur, the JVM will first wipe out all unreferenced objects whose only link is a weak reference. An out of memory will wipe all values from the maps which are currently unreferenced. The keys remain until the hashbelt containers are garbage collected, an put is called with that key or when the value should be accessed through any operation of the Container interface.
Since: 1.0
Version: $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Method Summary | |
---|---|
void | clear() |
boolean | containsKey(Object key) |
boolean | containsValue(Object value) |
Set | entrySet() |
Object | get(Object key) |
long | getTimestamp() |
boolean | isEmpty() |
Iterator | keyIterator() |
Set | keySet() |
Object | put(Object key, Object value) |
void | putAll(Map map) |
Object | remove(Object key) |
int | size() |
void | updateTimestamp() |
Iterator | valueIterator() |
Collection | values() |
See Also: java.util.Map#clear()
See Also: java.util.Map#containsKey(java.lang.Object)
See Also: java.util.Map#containsValue(java.lang.Object)
See Also: java.util.Map#entrySet()
See Also: java.util.Map#get(java.lang.Object)
See Also: getTimestamp
See Also: java.util.Map#isEmpty()
See Also: keyIterator
See Also: java.util.Map#keySet()
See Also: java.util.Map#put(java.lang.Object, java.lang.Object)
See Also: java.util.Map#putAll(java.util.Map)
See Also: java.util.Map#remove(java.lang.Object)
See Also: java.util.Map#size()
See Also: updateTimestamp
See Also: valueIterator
See Also: java.util.Map#values()