Package org.glassfish.hk2.utilities.cache
package org.glassfish.hk2.utilities.cache
-
ClassDescriptionCache<K,
V> Cache implementation that relies on FutureTask.Should a cycle be detected during computation of a value for given key, this interface allows client code to register a callback that would get invoked in such a case.This can be used to remove a specific cache entry from the cache, for better control of the caching release semanticsThis is used by the cache to remove a series of entries that match this filterUtilities for creating cachesComputable<K,V> Utility interface to capture generic computation of type V from type K.This exception should be thrown from theComputable.compute(Object)
method if the returned computation should NOT be kept in the cache.Represents a single hybrid cache entry.LRUCache<K,V> A cache that contains a certain number of entries, and whose oldest accessed entries are removed when removal is necessary.LRUHybridCache<K,V> Hybrid cache that allows explicit removals of included entries as well as implicit removal of entries that have been least recently accessed.Should a cycle be detected during computation of a value for given key, this interface allows client code to register a callback that would get invoked in such a case.WeakCARCache<K,V> A cache that uses the CAR algorithm to remove entries.