org.jasig.portal.concurrency.caching |
|
Java Source File Name | Type | Comment |
CachedEntityInvalidation.java | Class | An instance of this class represents an event: a change to an
IBasicEntity that renders any cached instances of the entity
invalid. |
EntityCacheTester.java | Class | Tests the entity caching framework.
author: : Dan Ellentuck author: TESTS: author: (1) testEntityServiceAddsAndDeletes() -- Add, retrieve and remove entities author: via the service facade. author: (2) testEntityCacheAddsAndDeletes() -- Add, retrieve and remove entries author: from an IEntityCache. author: (3) testEntityCacheSweep() -- Sweep must remove correct number of entries author: from cache, based on time of last use. author: (4) testInvalidatingCacheAddsAndDeletes() -- Add, retrieve and remove author: entries from an invalidating IEntityCache. author: (5) testInvalidatingCacheInvalidation() -- Invalidating IEntityCaches must author: invalidate each others' entries when their own entries are either author: updated or deleted. author: (6) testStoreAddsAndDeletes() -- Add and delete invalidations via the author: invalidation store. author: (7) testStoreBeforeAndAfter() -- Retrieve invalidations from the store author: that were added after some point in time. author: (8) testStoreUpdates() -- Retrieve invalidations from the store that author: were updated after some point in time. author: (9) testFudgeFactor() -- An earlier invalidation from one invalidating cache author: should invalidate its corresponding entity in another cache IF the author: interval is no greater than the fudge factor. |
LRUCache.java | Class | A rewrite of SmartCache that uses a moderate LRU algorithm: entries
are purged from the cache via periodic sweeps rather than in response to
specific cache additions. |
RDBMCachedEntityInvalidationStore.java | Class | RDBMS-based store for CachedEntityInvalidations . |
ReferenceEntityCache.java | Class | Reference implementation of IEntityCache. |
ReferenceEntityCachingService.java | Class | Caching service reference implementation. |
ReferenceEntityCachingServiceFactory.java | Class | Creates an instance of IEntityCachingService . |
ReferenceInvalidatingEntityCache.java | Class | Reference implementation of 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. |