K - The type of the keyV - The value of the keypublic abstract class AbstractCache<K,V> extends Object implements Cache<K,V>
Cache. All implementations should
extend this base class.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCache(ValueRetriever<K,V> valueRetriever)
Creates a new abstract cache.
|
| Modifier and Type | Method and Description |
|---|---|
protected CacheItem<V> |
retrieveValue(K key)
Retrieves a value from the value retriever.
|
protected AbstractCache(ValueRetriever<K,V> valueRetriever)
valueRetriever - The value retrieverprotected CacheItem<V> retrieveValue(K key) throws CacheException
key - The key of the value to retrievenull if there is no valueCacheException - if an error occurs retrieving the valueCopyright © 2026. All rights reserved.