Class CacheRecord<V>


  • public class CacheRecord<V>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheRecord​(V value, java.time.Instant lastAccess)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V getValue()  
      boolean isExpired​(java.lang.Long timeToLiveMs)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • CacheRecord

        public CacheRecord​(V value,
                           java.time.Instant lastAccess)
    • Method Detail

      • isExpired

        public boolean isExpired​(java.lang.Long timeToLiveMs)
      • getValue

        public V getValue()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object