IEntityCache
that is meant for a multi-server environment in which updates to cached entities may occur on peer caches on other JVMs, invalidating the local copy of the entity. Cache entries are wrapped in a CacheEntry
that records their creation time. At intervals, cleanupCache() is called by the cache's cleanup thread. When this happens, the class retrieves invalidation notices from its invalidation store and purges stale entries.
A fudge factor (clockTolerance) is employed to account for differences in system clocks among servers. This may cause a valid entry to be removed from the cache if it is newer than the corresponding invalidation by less than the fudge factor. However, this should not be to frequent, and assuming the factor is appropriately set, all relevant invalidations should occur.
@author Dan Ellentuck @version $Revision: 1.14.4.2 $
|
|
|
|
|
|