public class CacheEntry
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
protected long | 
cachedate
The cache data. 
 | 
protected java.lang.Object | 
data
The cache data. 
 | 
protected long | 
ttl
The time to live. 
 | 
| Constructor and Description | 
|---|
CacheEntry(java.lang.Object data,
          long cachedate,
          long ttl)
Create a new cache entry. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getCacheDate()
Get the cachedate. 
 | 
java.lang.Object | 
getData()
Get the data. 
 | 
long | 
getTimeToLive()
Get the ttl. 
 | 
boolean | 
isExpired(long now)
Test if a cache entry is expired. 
 | 
protected java.lang.Object data
protected long cachedate
protected long ttl
public CacheEntry(java.lang.Object data,
                  long cachedate,
                  long ttl)
public java.lang.Object getData()
public long getCacheDate()
public long getTimeToLive()
public boolean isExpired(long now)
now - The current time (-1 for never expire).