Package org.gcube.application.cms.caches
Class TimedMap<K,V>
- java.lang.Object
-
- org.gcube.application.cms.caches.TimedMap<K,V>
-
- All Implemented Interfaces:
Cache<K,V>
- Direct Known Subclasses:
AbstractScopedMap
public abstract class TimedMap<K,V> extends Object implements Cache<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NonNull Stringnameprotected ConcurrentHashMap<K,TTLObject<V>>scopeMapprotected TemporalAmountTTL
-
Constructor Summary
Constructors Constructor Description TimedMap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddispose(V toDispose)Vget(K key)protected abstract VretrieveObject(K key)
-
-
-
Field Detail
-
scopeMap
protected ConcurrentHashMap<K,TTLObject<V>> scopeMap
-
TTL
protected TemporalAmount TTL
-
name
@NonNull protected @NonNull String name
-
-
Method Detail
-
get
public V get(K key) throws org.gcube.application.geoportal.common.model.rest.ConfigurationException
-
retrieveObject
protected abstract V retrieveObject(K key) throws org.gcube.application.geoportal.common.model.rest.ConfigurationException
- Throws:
org.gcube.application.geoportal.common.model.rest.ConfigurationException
-
dispose
protected void dispose(V toDispose)
-
-