类 Cache.Entry

java.lang.Object
com.android.volley.Cache.Entry
封闭接口:
Cache

public static class Cache.Entry extends Object
Data and metadata for an entry returned by the cache.
  • 字段详细资料

    • data

      public byte[] data
      The data returned from cache.
    • etag

      public String etag
      ETag for cache coherency.
    • serverDate

      public long serverDate
      Date of this response as reported by the server.
    • lastModified

      public long lastModified
      The last modified date for the requested object.
    • ttl

      public long ttl
      TTL for this record.
    • softTtl

      public long softTtl
      Soft TTL for this record.
    • responseHeaders

      public Map<String,String> responseHeaders
      Immutable response headers as received from server; must be non-null.
  • 构造器详细资料

    • Entry

      public Entry()
  • 方法详细资料

    • isExpired

      public boolean isExpired()
      True if the entry is expired.
    • refreshNeeded

      public boolean refreshNeeded()
      True if a refresh is needed from the original data source.