public static class Cache.Entry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
byte[] |
data
The data returned from cache.
|
java.lang.String |
etag
ETag for cache coherency.
|
long |
lastModified
The last modified date for the requested object.
|
java.util.Map<java.lang.String,java.lang.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 and Description |
---|
Entry() |
Modifier and Type | Method and Description |
---|---|
boolean |
isExpired()
True if the entry is expired.
|
boolean |
refreshNeeded()
True if a refresh is needed from the original data source.
|
public byte[] data
public java.lang.String etag
public long serverDate
public long lastModified
public long ttl
public long softTtl
public java.util.Map<java.lang.String,java.lang.String> responseHeaders