|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.cache.CacheSupport
public abstract class CacheSupport
Constructor Summary | |
---|---|
CacheSupport()
|
Method Summary | |
---|---|
List<CacheEntry> |
entries()
Returns a List of entries containing in this cache Each element in the returned list is a CacheEntry. |
List<CacheEntry> |
entries(CacheEntryFilter filter)
Returns a list of entries containing in this cache that match the given filter. |
List<CacheEntry> |
entries(CacheKeyFilter filter)
Returns a list of entries containing in this cache that match the given filter. |
CacheEntry |
getCacheEntry(String key)
return cache entry that match the key, throws a CacheException when entry does not exist or is stale |
Struct |
getCustomInfo()
get all information data available for this cache |
CacheEntry |
getQuiet(String key)
|
abstract CacheEntry |
getQuiet(String key,
CacheEntry defaultValue)
|
Object |
getValue(String key)
return value that match the key, throws a CacheException when entry does not exist or is stale |
Object |
getValue(String key,
Object defaultValue)
return value that match the key or the defaultValue when entry does not exist |
List<CacheEntry> |
keys(CacheEntryFilter filter)
Returns a List of the keys contained in this cache that match the given filter. |
List<String> |
keys(CacheKeyFilter filter)
Returns a List of the keys contained in this cache that match the given filter. |
int |
remove(CacheEntryFilter filter)
remove all entries that match the given filter |
int |
remove(CacheKeyFilter filter)
remove all entries that match the given filter |
List |
values()
Returns a List of values containing in this cache. |
List |
values(CacheEntryFilter filter)
Returns a list of values containing in this cache that match the given filter. |
List |
values(CacheKeyFilter filter)
Returns a list of values containing in this cache that match the given filter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface railo.commons.io.cache.Cache |
---|
contains, getCacheEntry, hitCount, init, keys, missCount, put, remove |
Constructor Detail |
---|
public CacheSupport()
Method Detail |
---|
public List<String> keys(CacheKeyFilter filter) throws IOException
Cache
keys
in interface Cache
IOException
public List<CacheEntry> keys(CacheEntryFilter filter) throws IOException
Cache
keys
in interface Cache
IOException
public List<CacheEntry> entries() throws IOException
Cache
entries
in interface Cache
IOException
public List<CacheEntry> entries(CacheKeyFilter filter) throws IOException
Cache
entries
in interface Cache
IOException
public List<CacheEntry> entries(CacheEntryFilter filter) throws IOException
Cache
entries
in interface Cache
IOException
public List values() throws IOException
Cache
values
in interface Cache
IOException
public List values(CacheEntryFilter filter) throws IOException
Cache
values
in interface Cache
IOException
public List values(CacheKeyFilter filter) throws IOException
Cache
values
in interface Cache
IOException
public int remove(CacheEntryFilter filter) throws IOException
Cache
remove
in interface Cache
IOException
public int remove(CacheKeyFilter filter) throws IOException
Cache
remove
in interface Cache
IOException
public Struct getCustomInfo()
Cache
getCustomInfo
in interface Cache
public Object getValue(String key) throws IOException
Cache
getValue
in interface Cache
key
- key of the value to get
CacheException
IOException
public Object getValue(String key, Object defaultValue)
Cache
getValue
in interface Cache
key
- key of the value to get
public CacheEntry getCacheEntry(String key) throws IOException
Cache
getCacheEntry
in interface Cache
key
- key of the cache entry to get
CacheException
IOException
public CacheEntry getQuiet(String key) throws IOException
IOException
public abstract CacheEntry getQuiet(String key, CacheEntry defaultValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |