Package fr.gouv.vitam.common.metrics
Class PassiveExpiringCache<K,V>
- java.lang.Object
-
- fr.gouv.vitam.common.metrics.PassiveExpiringCache<K,V>
-
@ThreadSafe public final class PassiveExpiringCache<K,V> extends java.lang.Object
PassiveExpiringMap
-like cache implementation with Vitam LocalDate (simplifies time-based unit tests)
-
-
Constructor Summary
Constructors Constructor Description PassiveExpiringCache(long cacheDuration, java.util.concurrent.TimeUnit cacheDurationUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get(K key)
void
put(K key, V value)
-