Package com.kheops.util
Class KMemoryDataCache.CachedData
java.lang.Object
com.kheops.util.KMemoryDataCache.CachedData
- Enclosing class:
KMemoryDataCache
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 Summary
ConstructorDescriptionCachedData
(byte[] data, long expiration) Construct CachedData instance with the specified parameters -
Method Summary
-
Constructor Details
-
CachedData
public CachedData(byte[] data, long expiration) Construct CachedData instance with the specified parameters- Parameters:
data
- the byte array containing the dataexpiration
- 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
-