Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PassiveExpiringCache

        public PassiveExpiringCache​(long cacheDuration,
                                    java.util.concurrent.TimeUnit cacheDurationUnit)
    • Method Detail

      • put

        public void put​(K key,
                        V value)
      • get

        public V get​(K key)