| Home >> All >> com >> opensymphony >> oscache >> base >> [ algorithm Javadoc ] |
com.opensymphony.oscache.base.algorithm: Javadoc index of package com.opensymphony.oscache.base.algorithm.
Package Samples:
com.opensymphony.oscache.base.algorithm: Provides the base classes and interfaces that make up the core of OSCache.
Classes:
AbstractConcurrentReadCache: A version of Hashtable that supports mostly-concurrent reading, but exclusive writing. Because reads are not limited to periods without writes, a concurrent reader policy is weaker than a classic reader/writer policy, but is generally faster and allows more concurrency. This class is a good choice especially for tables that are mainly created by one thread during the start-up phase of a program, and from then on, are mainly read (with perhaps occasional additions or removals) in many threads. If you also need concurrency among writes, consider instead using ConcurrentHashMap. Successful retrievals ...
LRUCache: LRU (Least Recently Used) algorithm for the cache. Since release 2.3 this class requires Java 1.4 to use the LinkedHashSet . Use prior OSCache release which require the Jakarta commons-collections SequencedHashMap class or the LinkedList class if neither of the above classes are available. No synchronization is required in this class since the AbstractConcurrentReadCache already takes care of any synchronization requirements.
TestLRUCache: Test class for the LRUCache class. It only tests that the algorithm reacts as expected when entries are removed. All the other tests related to the LRU algorithm are in the TestNonQueueCache class, since those tests are shared with the TestUnlimitedCache class. $Id: TestLRUCache.java,v 1.1 2005/06/17 05:07:08 dres Exp $
TestUnlimitedCache: Test class for the Unlimited cache algorithm. Most of the tests are done in the TestNonQueueCache class, so only algorithm specific tests are done here. Since this is an unlimited cache, there's not much to test about the algorithm. $Id: TestUnlimitedCache.java,v 1.2 2006/06/15 16:27:17 ltorunski Exp $
TestCompleteAlgorithm: Test class for the com.opensymphony.oscache.base.algorithm package. It invokes all the test suites of all the other classes of the package, except abstract ones because they are tested via final ones. $Id: TestCompleteAlgorithm.java,v 1.1 2005/06/17 05:07:08 dres Exp $
TestAbstractCache: Test class for the AbstractCache class. It tests all public methods of the AbstractCache and assert the results. It is design to run under JUnit. $Id: TestAbstractCache.java,v 1.3 2006/06/17 08:02:28 ltorunski Exp $
FIFOCache: FIFO (First In First Out) based queue algorithm for the cache. No synchronization is required in this class since the AbstractConcurrentReadCache already takes care of any synchronization requirements.
TestQueueCache: Test class for the QueueCache class, which is the base class for FIFO and LIFO algorithm classes. All the public methods of QueueCache are tested here. $Id: TestQueueCache.java,v 1.1 2005/06/17 05:07:07 dres Exp $
TestFIFOCache: Test class for the FIFOCache class. It tests that the algorithm reacts as expected when entries are removed $Id: TestFIFOCache.java,v 1.1 2005/06/17 05:07:08 dres Exp $
UnlimitedCache: A simple unlimited cache that has no upper bound to the number of cache entries it can contain.
| Home | Contact Us | Privacy Policy | Terms of Service |