public class CacheItem extends Object
Constructor and Description |
---|
CacheItem(Object id,
Object object) |
CacheItem(Object id,
Object object,
long expireTime) |
Modifier and Type | Method and Description |
---|---|
protected void |
accessed() |
long |
getAccessedTimes() |
long |
getExpireTime() |
Object |
getId()
Get the id
|
long |
getLastAccess()
Get the time this CacheItem was last accessed.
|
long |
getLastUpdate()
Get the time this CacheItem was last updated.
|
Object |
getObject()
Get the object
|
boolean |
isExpired() |
void |
setExpireTime(long expireTime) |
void |
setLastAccess(long lastAccess)
Set the time this CacheItem was last accessed.
|
void |
setLastUpdate(long lastUpdate)
Set the time this CacheItem was last updated.
|
public Object getId()
public Object getObject()
public void setLastAccess(long lastAccess)
public long getLastAccess()
public long getAccessedTimes()
public long getExpireTime()
public void setExpireTime(long expireTime)
public boolean isExpired()
protected void accessed()
public void setLastUpdate(long lastUpdate)
public long getLastUpdate()
© 1998- 2014 Escenic
Contact Escenic Support for bug submission or feature requests. For further API reference and developer documentation, see Technet. The Technet documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Escenic A/S, Sommerrogt. 13-15 Solli, 0255 Oslo, Norway.