Package net.targetr.wtm3.cache
Class ResourceCache.CacheValue
java.lang.Object
net.targetr.wtm3.cache.ResourceCache.CacheValue
- Enclosing class:
ResourceCache
Represents a single entry in the resource cache.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AtomicIntegerNumber of times this resource has been accessed.byte[]The binary content of the resource.The ETag string calculated for the resource data.booleanTrue if the resource was found, false otherwise.longLast access time inClock.realtime()milliseconds. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
found
public boolean foundTrue if the resource was found, false otherwise. -
etag
The ETag string calculated for the resource data. -
lastAccessed
public long lastAccessedLast access time inClock.realtime()milliseconds. -
accessCount
Number of times this resource has been accessed. -
data
public byte[] dataThe binary content of the resource.
-
-
Constructor Details
-
CacheValue
public CacheValue()Constructs a new CacheValue.
-