org.castor.cache.simple
public class TimeLimited extends AbstractBaseCache
The expiration time is passed to the cache at initialization by the individual cache property ttl which defines the timeout of every object in the cache in seconds. If not specified a timeout of 30 seconds will be used.
Version: $Revision: 6320 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Field Summary | |
---|---|
static int | DEFAULT_TTL Default ttl of cache. |
static String | PARAM_TTL Mapped initialization parameter: ttl |
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 | getTTL()
Get real ttl 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 ttl 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()