K
- the key type. This must have both Object.equals(Object)
and Object.hashCode()
correctly implemented.V
- the value type. It is generally recommended to use an immutable
type here, but this is not required.X
- the type of exception thrown. If no exception will be throws, use
NeverThrownRuntimeException
.public class SynchronizedCache<K,V,X extends java.lang.Exception> extends BasicCache<K,V,X>
Constructor and Description |
---|
SynchronizedCache(java.lang.String name,
IParameterizedFactory<V,K,X> factory,
ICacheBackend<K,V> backend)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
V |
obtain(K key)
Obtain the value for a key.
|
clear, getHits, getMissCostMillis, getMisses, getName
public SynchronizedCache(java.lang.String name, IParameterizedFactory<V,K,X> factory, ICacheBackend<K,V> backend)