public class HttpCacheEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
VALUE_NOT_SET |
| Constructor and Description |
|---|
HttpCacheEntry() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear the contents
|
void |
computeExpireTime(int timeout)
compute when this entry to be expired based on timeout relative to
current time.
|
int |
getSize()
get the size
|
boolean |
isValid()
is this response still valid?
|
void |
setExpireTime(long expireTime)
set the real expire time
|
public static final int VALUE_NOT_SET
public void setExpireTime(long expireTime)
expireTime - in milli secondspublic void computeExpireTime(int timeout)
timeout - in secondspublic boolean isValid()
public void clear()
public int getSize()
Copyright © 2017. All rights reserved.