|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
boolean |
contains(java.lang.String key)
check if there is a entry inside the cache that match the given key |
CacheEntry |
getCacheEntry(java.lang.String key)
return cache entry that match the key, throws a CacheException when entry does not exists or is stale |
CacheEntry |
getCacheEntry(java.lang.String key,
CacheEntry defaultValue)
return cache entry that match the key or the defaultValue when entry does not exist |
java.lang.Object |
getValue(java.lang.String key)
return value that match the key, throws a CacheException when entry does not exists or is stale |
java.lang.Object |
getValue(java.lang.String key,
java.lang.Object defaultValue)
return value that match the key or the defaultValue when entry does not exist |
void |
init(Struct arguments)
initialize the cache |
java.util.List |
keys()
Returns a List of the keys contained in this cache. |
java.util.List |
keys(CacheEntryFilter filter)
Returns a List of the keys contained in this cache that match the given filter. |
java.util.List |
keys(CacheKeyFilter filter)
Returns a List of the keys contained in this cache that match the given filter. |
void |
put(java.lang.String key,
java.lang.Object value,
java.lang.Long idleTime,
java.lang.Long until)
puts a cache entry to the cache, overwrite existing entries that already exists inside the cache with the same key |
int |
remove(CacheEntryFilter filter)
remove all entries that match the given filter |
int |
remove(CacheKeyFilter filter)
remove all entries that match the given filter |
boolean |
remove(java.lang.String key)
remove entry that match this key |
java.util.List |
values()
Returns a List of values containing in this cache Each element in the returned set is a CacheEntry. |
java.util.List |
values(CacheEntryFilter filter)
Returns a list of values containing in this cache that match the given filter. |
java.util.List |
values(CacheKeyFilter filter)
Returns a list of values containing in this cache that match the given filter. |
| Method Detail |
public void init(Struct arguments)
arguments - configuration arguments
public CacheEntry getCacheEntry(java.lang.String key)
throws CacheException
key - key of the cache entry to get
CacheException
public java.lang.Object getValue(java.lang.String key)
throws CacheException
key - key of the value to get
CacheException
public CacheEntry getCacheEntry(java.lang.String key,
CacheEntry defaultValue)
key - key of the cache entry to get
public java.lang.Object getValue(java.lang.String key,
java.lang.Object defaultValue)
key - key of the value to get
public void put(java.lang.String key,
java.lang.Object value,
java.lang.Long idleTime,
java.lang.Long until)
value - public boolean contains(java.lang.String key)
key -
public boolean remove(java.lang.String key)
key -
public int remove(CacheKeyFilter filter)
filter -
public int remove(CacheEntryFilter filter)
filter -
public java.util.List keys()
public java.util.List keys(CacheKeyFilter filter)
filter -
public java.util.List keys(CacheEntryFilter filter)
filter -
public java.util.List values()
public java.util.List values(CacheKeyFilter filter)
public java.util.List values(CacheEntryFilter filter)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||