public class CacheEntry extends Object
Constructor and Description |
---|
CacheEntry(Object data,
long cachedate,
long ttl)
Create a new cache entry.
|
Modifier and Type | Method and Description |
---|---|
long |
getCacheDate()
Get the cachedate.
|
Object |
getData()
Get the data.
|
long |
getTimeToLive()
Get the ttl.
|
boolean |
isExpired(long now)
Test if a cache entry is expired.
|
public CacheEntry(Object data, long cachedate, long ttl)
public Object getData()
public long getCacheDate()
public long getTimeToLive()
public boolean isExpired(long now)
now
- The current time (-1 for never expire).Copyright © 2012. All Rights Reserved.