public class DataCache<V> extends LazyValueCache<Ref,V>
LazyValueCache.DataCacheEntry
Constructor and Description |
---|
DataCache(java.lang.String name)
Creates a cache in which all resource data is always memory resident
|
DataCache(java.lang.String name, int cacheType, PersistenceHandler handler, DataCache<V> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
add(Ref ref) |
void |
add(Ref ref, V value) |
V |
delete(Ref ref) |
V |
evaluateKey(Ref ref) |
V |
getValue(Ref ref) |
containsKey, get, getCacheType, getLazyValue, isEmpty, keySet, lazyValues, put, put, remove, shutdown, size, values
public DataCache(java.lang.String name)
public DataCache(java.lang.String name, int cacheType, PersistenceHandler handler, DataCache<V> delegate)
public void add(Ref ref, V value) throws AlreadyExistsException
AlreadyExistsException
public void add(Ref ref) throws AlreadyExistsException
AlreadyExistsException
public V delete(Ref ref) throws NotFoundException
NotFoundException
public V getValue(Ref ref) throws NotFoundException
NotFoundException
public V evaluateKey(Ref ref)
evaluateKey
in class LazyValueCache<Ref,V>