AbstractTwoStageCache.java | Class | This class pools objects, for efficiency accross a lightweight
fixed-size primary cache and a variable-size secondary cache - the
latter uses soft references to allow the polled object be GCed if
necessary.
To use the cache, a subclass is defined which provides an implementation
of the abstract get() method - this may be conveniently achieved via
an anonymous subclass. |