| java.lang.Object biz.hammurapi.cache.AbstractProducer biz.hammurapi.cache.MemoryCache
All known Subclasses: biz.hammurapi.cache.AppendableMemoryCache,
MemoryCache | public class MemoryCache extends AbstractProducer implements Cache,Component(Code) | | Memory sensitive cache. Uses soft references to cache objects.
author: Pavel Vlasov version: $Revision: 1.7 $ |
Constructor Summary | |
public | MemoryCache(Producer producer, Cache fallBack, MeasurementCategory measurementCategory) Constructs cache with default cleanup interval (1 minute). | public | MemoryCache(Producer producer, Cache fallBack, MeasurementCategory measurementCategory, Timer timer, long cleanupInterval) Constructs cache with default cleanup interval (1 minute).
Parameters: producer - Producer Parameters: fallBack - Fallback cache Parameters: measurementCategory - Measurement category to report cache statistics Parameters: cleanupInterval - Interval between removals of expired entries. Parameters: timer - Timer which will invoke cleanup tasks, if it is null then a new timer is created internally. |
CLEANUP_INTERVAL | final public static long CLEANUP_INTERVAL(Code) | | Default cache cleanup interval.
|
MemoryCache | public MemoryCache(Producer producer, Cache fallBack, MeasurementCategory measurementCategory)(Code) | | Constructs cache with default cleanup interval (1 minute).
Parameters: producer - Producer Parameters: fallBack - Fallback cache Parameters: measurementCategory - Measurement category to report cache statistics |
MemoryCache | public MemoryCache(Producer producer, Cache fallBack, MeasurementCategory measurementCategory, Timer timer, long cleanupInterval)(Code) | | Constructs cache with default cleanup interval (1 minute).
Parameters: producer - Producer Parameters: fallBack - Fallback cache Parameters: measurementCategory - Measurement category to report cache statistics Parameters: cleanupInterval - Interval between removals of expired entries. Parameters: timer - Timer which will invoke cleanup tasks, if it is null then a new timer is created internally. Use this parameter to share timers between multiple caches in order to reduce number of threads in the application. |
clear | public void clear()(Code) | | |
isActive | public boolean isActive()(Code) | | |
|
|