public abstract class LazyValueCache<K,V>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
LazyValueCache.DataCacheEntry |
Constructor and Description |
---|
LazyValueCache(java.lang.String name, int cacheType, boolean isTransactional) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(K key) |
protected abstract V |
evaluateKey(K key) |
V |
get(K key) |
int |
getCacheType() |
LazyValue<K,V> |
getLazyValue(K key) |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
java.util.Collection<LazyValue<K,V>> |
lazyValues() |
void |
put(K key) |
V |
put(K key, V value) |
V |
remove(K key) |
void |
shutdown() |
int |
size() |
java.util.Collection<V> |
values()
Exercise cauting when calling this method, as you may be causing a lot of computations if the value has not been computed already.
|
public LazyValueCache(java.lang.String name, int cacheType, boolean isTransactional)
public int getCacheType()
public void put(K key)
public java.util.Set<K> keySet()
public int size()
public java.util.Collection<V> values()
public boolean containsKey(K key)
public void shutdown()
public boolean isEmpty()