boolean
|
canUpdate(CacheHint hint)
Overridable.
|
synchronized
void
|
clear()
Clears the cache - all entries are removed.
|
void
|
close()
Un-register cache from the cache registry.
|
synchronized
void
|
configure(Properties prop)
|
boolean
|
contains(CacheHint hint)
|
void
|
delete(CacheHint hint)
Removes object from the cache and persistent storage
|
Object
|
get(CacheHint hint)
Finds and returns cached object based on the hint.
|
abstract
Object
|
getKey(CacheHint hint)
Overridable.
|
String
|
getName()
Returns cache name.
|
synchronized
int
|
getRefreshTime()
Returns cache refresh time in seconds.
|
synchronized
int
|
getStatisticTime()
Returns the statistic frequency in seconds.
|
synchronized
int
|
getTimeout()
Returns cache timeout in seconds.
|
abstract
Object
|
load(CacheHint hint)
Overridable.
|
void
|
logStatistic()
Writes cache statistic message to the log.
|
void
|
onHintClose(CacheHint hint)
This method is supposed to be called by the hint object when it is closed.
|
void
|
onTimer()
This method is periodically called by the cache registry.
|
void
|
put(CacheHint hint, Object ob)
Puts the object in the cache.
|
Object
|
reLoad(CacheHint hint, Object ob)
Overridable.
|
Object
|
refresh(CacheHint hint)
Re-loads object from the persistent storage
|
void
|
remove(CacheHint hint)
Removes an object from the cache.
|
void
|
save(CacheHint hint, Object ob)
Puts the object in the cache and stores it in the memory.
|
synchronized
void
|
setRefreshTime(int value)
Sets cache refresh time in seconds.
|
synchronized
void
|
setStatisticTime(int value)
Sets the statistic frequency in seconds.
|
synchronized
void
|
setTimeout(int value)
Sets cache timeout in seconds.
|
synchronized
int
|
size()
Returns cache size.
|
void
|
store(CacheHint hint, Object ob)
Overridable.
|
void
|
unLoad(CacheHint hint)
Overridable.
|