Package net.targetr.wtm3.cache
Class ResourceCache.CacheEntry
java.lang.Object
net.targetr.wtm3.cache.ResourceCache.CacheEntry
- Enclosing class:
ResourceCache
Represents a single entry in the resource cache.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyte[]The binary content of the resource.The ETag string calculated for the resource data.booleanTrue if the resource was found, false otherwise.longThe timestamp in milliseconds of when the entry was last accessed. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
found
public boolean foundTrue if the resource was found, false otherwise. -
data
public byte[] dataThe binary content of the resource. -
etag
The ETag string calculated for the resource data. -
lastAccessed
public long lastAccessedThe timestamp in milliseconds of when the entry was last accessed.
-
-
Constructor Details
-
CacheEntry
public CacheEntry()Constructs a new CacheEntry.
-