com.android.volley
Class Cache.Entry

java.lang.Object
  extended by com.android.volley.Cache.Entry
Enclosing interface:
Cache

public static class Cache.Entry
extends Object

Data and metadata for an entry returned by the cache.


Field Summary
 byte[] data
          The data returned from cache.
 String etag
          ETag for cache coherency.
 Map<String,String> responseHeaders
          Immutable response headers as received from server; must be non-null.
 long serverDate
          Date of this response as reported by the server.
 long softTtl
          Soft TTL for this record.
 long ttl
          TTL for this record.
 
Constructor Summary
Cache.Entry()
           
 
Method Summary
 boolean isExpired()
          True if the entry is expired.
 boolean refreshNeeded()
          True if a refresh is needed from the original data source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.


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.

Constructor Detail

Cache.Entry

public Cache.Entry()
Method Detail

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.