|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheMonitor
An interface that extends CacheClient to control and monitor other registered cache clients.
| Method Summary | |
|---|---|
void |
gc()
Runs the garbage collector. |
float |
getExpirationFraction()
Gets the fraction of cached entries to expire when running low in memory. |
long |
getExpirationThreshold()
Gets the threshold of available memory below which caches are expired. |
long |
getFreeMemory()
Gets the amount of free memory in bytes. |
long |
getMaxMemory()
Gets max amount of memory in bytes. |
long |
getTotalMemory()
Gets total amount of memory in bytes. |
String |
logMemoryStatus()
Logs memory status using the info logger. |
void |
setExpirationFraction(float frac)
Sets the fraction of cached entries to expire when running low in memory. |
void |
setExpirationThreshold(long thresh)
Sets the threshold of available memory below which caches are expired. |
| Methods inherited from interface org.norther.tammi.core.thread.Executable |
|---|
getExecutorName, setExecutorName |
| Methods inherited from interface org.norther.tammi.core.base.Startable |
|---|
isStarted, start, stop |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Methods inherited from interface org.norther.tammi.core.cache.CacheClient |
|---|
clearCached, expireCached, expireFraction, getCache, isCachingDisabled, removeCache, setCachingDisabled |
| Methods inherited from interface org.norther.tammi.core.base.Refreshable |
|---|
getRefreshed, refresh |
| Method Detail |
|---|
long getMaxMemory()
long getTotalMemory()
long getFreeMemory()
long getExpirationThreshold()
void setExpirationThreshold(long thresh)
thresh - the cache expiration threshold in bytes.float getExpirationFraction()
void setExpirationFraction(float frac)
frac - the cache expiration fraction (0.0..1.0).String logMemoryStatus()
void gc()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||