|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apertereports.util.cache.MapCacheManager
public final class MapCacheManager
A utility for handling cache expiration. Periodically checks the cache for invalid objects with a single thread.
| Nested Class Summary | |
|---|---|
static class |
MapCacheManager.InvalidatingThread
A cache invalidating thread. |
| Method Summary | |
|---|---|
static void |
invalidateAllCaches()
Clears all registered caches from all objects and the interval map. |
static void |
objectCached(MapCache cache,
String key,
long interval)
Registers an object for periodic interval check. |
static void |
objectProvided(MapCache cache,
String key)
Indicates the object was provided by one of the registered caches. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void objectProvided(MapCache cache,
String key)
cache - The MapCache that provided the objectkey - Object key
public static void objectCached(MapCache cache,
String key,
long interval)
cache - The MapCache that cached the objectkey - Object keyinterval - Interval the cache is valid forpublic static void invalidateAllCaches()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||