|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- the type of keys maintained by the cache.V
- the type of cached values.public interface CacheClient<K,V>
An interface to objects maintaining other objects in caches. This interface provides methods for memory managers and other cache controllers.
Method Summary | |
---|---|
void |
clearCached()
Clears all cached entries without notifying. |
void |
expireCached(long timestamp)
Expires all cached entries notifying them about expiration. |
void |
expireFraction(long timestamp,
float fraction)
Expires the specified fraction of cached entries notifying them about expiration. |
ConcurrentMap<K,V> |
getCache(boolean... create)
Gets and optionally creates the cache. |
ObjectName |
getSharedCacheName()
Gets the the shared cache of this client. |
boolean |
isCachingDisabled()
Checks whether the caching is disabled. |
void |
removeCache()
Removes the cache. |
void |
setCachingDisabled(boolean flag)
Sets the caching disabled flag. |
void |
setSharedCacheName(ObjectName cache)
Sets the shared cache of this client. |
Methods inherited from interface org.norther.tammi.core.base.Refreshable |
---|
getRefreshed, refresh |
Method Detail |
---|
boolean isCachingDisabled()
void setCachingDisabled(boolean flag)
flag
- the caching disabled flag.void expireCached(long timestamp)
timestamp
- the timestamp of the expiration.void expireFraction(long timestamp, float fraction)
timestamp
- the timestamp of the expiration.fraction
- the fraction of entries to expire (0.0..1.0).void clearCached()
ConcurrentMap<K,V> getCache(boolean... create)
create
- true to create a missing cache.
void removeCache()
ObjectName getSharedCacheName()
void setSharedCacheName(ObjectName cache)
cache
- the object name of the shared cache or a query.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |