public static class

Cache.Entry

extends Object
java.lang.Object
   ↳ com.android.volley.Cache.Entry

Class Overview

Data and metadata for an entry returned by the cache.

Summary

Fields
public byte[] data The data returned from cache.
public String etag ETag for cache coherency.
public long lastModified The last modified date for the requested object.
public Map<String, String> responseHeaders Immutable response headers as received from server; must be non-null.
public long serverDate Date of this response as reported by the server.
public long softTtl Soft TTL for this record.
public long ttl TTL for this record.
Public Constructors
Cache.Entry()
Public Methods
boolean isExpired()
True if the entry is expired.
boolean refreshNeeded()
True if a refresh is needed from the original data source.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public byte[] data

The data returned from cache.

public String etag

ETag for cache coherency.

public long lastModified

The last modified date for the requested object.

public Map<String, String> responseHeaders

Immutable response headers as received from server; must be non-null.

public long serverDate

Date of this response as reported by the server.

public long softTtl

Soft TTL for this record.

public long ttl

TTL for this record.

Public Constructors

public Cache.Entry ()

Public Methods

public boolean isExpired ()

True if the entry is expired.

public boolean refreshNeeded ()

True if a refresh is needed from the original data source.