Top Interfaces Classes
module org.glassfish.hk2.utilities

Package org.glassfish.hk2.utilities.cache


Interface Summary

Modifier and TypeInterface and Description
public interface
CacheEntry

This can be used to remove a specific cache entry from the cache, for better control of the caching release semantics

public interface
CacheKeyFilter<
The key type for this filter
K
>

This is used by the cache to remove a series of entries that match this filter

public interface
Computable<K, V>

Utility interface to capture generic computation of type V from type K.

public interface
HybridCacheEntry<V>

Represents a single hybrid cache entry.

public interface
WeakCARCache<K, V>

A cache that uses the CAR algorithm to remove entries.

Class Summary

Modifier and TypeClass and Description
public class
Cache<
The type of the key of the cache
K
,
The type of the values in the cache
V
>

Cache implementation that relies on FutureTask.

public class
CacheUtilities

Utilities for creating caches

public class
ComputationErrorException

This exception should be thrown from the Computable#compute(Object) method if the returned computation should NOT be kept in the cache.

public abstract class
LRUCache<
The key type for this cache
K
,
The value type for this cache
V
>

A cache that contains a certain number of entries, and whose oldest accessed entries are removed when removal is necessary.

public class
LRUHybridCache<
The type for the keys in the cache
K
,
The type for the values in the cache
V
>

Hybrid cache that allows explicit removals of included entries as well as implicit removal of entries that have been least recently accessed.