Top Interfaces Classes
[default module]

Package org.codehaus.groovy.runtime.memoize


Interface Summary

Modifier and TypeInterface and Description
public interface
EvictableCache<
type of the keys
K
,
type of the values
V
>

Represents an evictable memoize cache with its essential methods

public interface
MemoizeCache<
type of the keys
K
,
type of the values
V
>

Represents a memoize cache with its essential methods

pack-priv interface
ProtectionStorage<K, V>

Protects stored resources from eviction from memory following the LRU (Last Recently Used) strategy.

public interface
ValueConvertable<
source value type, e.g. SoftReference, WeakReference
V1
,
target value type, e.g. value that SoftReference or WeakReference referenced
V2
>

To support caches whose values are convertable, e.g. SoftReference, WeakReference

Class Summary

Modifier and TypeClass and Description
public class
CommonCache<
type of the keys
K
,
type of the values
V
>

Represents a simple key-value cache, which is NOT thread safe and backed by a java.util.Map instance

public class
ConcurrentCommonCache<
type of the keys
K
,
type of the values
V
>

Represents a simple key-value cache, which is thread safe and backed by a java.util.Map instance

public class
ConcurrentSoftCache<
key type
K
,
real value type
V
>

Represents concurrent cache holding SoftReference instance as value

public class
LRUCache<K, V>

A cache backed by a ConcurrentLinkedHashMap

pack-priv class
LRUProtectionStorage

Protects stored resources from eviction from memory following the LRU (Last Recently Used) strategy.

public abstract class
Memoize

Implements memoize for Closures.

public class
NullProtectionStorage

A NullObject pattern implementation for ProtectionStorage Doesn't protect any resources.

public class
StampedCommonCache<
type of the keys
K
,
type of the values
V
>

Represents a simple key-value cache, which is thread safe and backed by a Map instance.

public class
UnlimitedConcurrentCache<K, V>

A cache backed by a ConcurrentHashMap