org.castor.cache.simple
public final class CountLimited extends AbstractBaseCache
The capacity is passed to the cache at initialization by the individual cache property capacity which defines the maximum number of objects the cache can hold. If not specified a default capacity of 30 objects will be used.
Version: $Revision: 6230 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Field Summary | |
---|---|
static int | DEFAULT_CAPACITY Default capacity of cache. |
static String | PARAM_CAPACITY Mapped initialization parameter: capacity |
static String | TYPE The type of the cache. |
Method Summary | |
---|---|
void | clear() |
boolean | containsKey(Object key) |
boolean | containsValue(Object value) |
Set | entrySet() |
Object | get(Object key) |
int | getCapacity()
Get real capacity of this cache.
|
String | getType() |
void | initialize(Properties params) |
boolean | isEmpty() |
Set | keySet() |
Object | put(Object key, Object value) |
void | putAll(Map map) |
Object | remove(Object key) |
int | size() |
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)
Returns: Real capacity of this cache.
See Also: getType
See Also: initialize
See Also: java.util.Map#isEmpty()
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: java.util.Map#values()