|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheClient
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 |
getCache(boolean create)
Gets and optionally creates the cache. |
boolean |
isCachingDisabled()
Checks whether the caching is disabled. |
void |
removeCache()
Removes the cache. |
void |
setCachingDisabled(boolean flag)
Sets the caching disabled flag. |
| 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 getCache(boolean create)
create - true to create a missing cache.
void removeCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||