Class ResourceCache.CacheValue

java.lang.Object
net.targetr.wtm3.cache.ResourceCache.CacheValue
Enclosing class:
ResourceCache

public static class ResourceCache.CacheValue extends Object
Represents a single entry in the resource cache.
  • Field Details

    • found

      public boolean found
      True if the resource was found, false otherwise.
    • etag

      public String etag
      The ETag string calculated for the resource data.
    • lastAccessed

      public long lastAccessed
      Last access time in Clock.realtime() milliseconds.
    • accessCount

      public final AtomicInteger accessCount
      Number of times this resource has been accessed.
    • data

      public byte[] data
      The binary content of the resource.
  • Constructor Details

    • CacheValue

      public CacheValue()
      Constructs a new CacheValue.