类 Cache.Entry
java.lang.Object
com.android.volley.Cache.Entry
- 封闭接口:
- Cache
Data and metadata for an entry returned by the cache.
-
字段概要
字段修饰符和类型字段说明byte[]The data returned from cache.ETag for cache coherency.longThe last modified date for the requested object.Immutable response headers as received from server; must be non-null.longDate of this response as reported by the server.longSoft TTL for this record.longTTL for this record. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanTrue if the entry is expired.booleanTrue if a refresh is needed from the original data source.
-
字段详细资料
-
data
public byte[] dataThe data returned from cache. -
etag
ETag for cache coherency. -
serverDate
public long serverDateDate of this response as reported by the server. -
lastModified
public long lastModifiedThe last modified date for the requested object. -
ttl
public long ttlTTL for this record. -
softTtl
public long softTtlSoft TTL for this record. -
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.
-