Class TimedCachePolicy.DefaultTimedEntry

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long expirationTime  
      (package private) java.lang.Object value  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultTimedEntry​(long lifetime, java.lang.Object value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Notify the entry that it has been removed from the cache.
      java.lang.Object getValue()  
      void init​(long now)
      Initializes an entry with the current cache time.
      boolean isCurrent​(long now)
      Is the entry still valid basis the current time
      boolean refresh()
      Attempt to extend the entry lifetime by refreshing it.
      • Methods inherited from class java.lang.Object

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

      • expirationTime

        long expirationTime
      • value

        java.lang.Object value
    • Constructor Detail

      • DefaultTimedEntry

        DefaultTimedEntry​(long lifetime,
                          java.lang.Object value)