Class KMemoryDataCache.CachedData

java.lang.Object
com.kheops.util.KMemoryDataCache.CachedData
Enclosing class:
KMemoryDataCache

protected class KMemoryDataCache.CachedData extends Object
This inner-class encapsutale the concept of cache It constains the data as well as the amount of time that the data can remain in memory before it becomes expired
  • Constructor Details

    • CachedData

      public CachedData(byte[] data, long expiration)
      Construct CachedData instance with the specified parameters
      Parameters:
      data - the byte array containing the data
      expiration - the expiration date of the data in the cache
      See Also:
  • Method Details

    • isExpired

      public boolean isExpired()
      Checks if this cached data has expired
      Returns:
      the boolean value result