public class CacheElement extends Object implements Serializable
Constructor and Description |
---|
CacheElement() |
CacheElement(Object object) |
CacheElement(Object object,
int timeout) |
Modifier and Type | Method and Description |
---|---|
long |
getLastUpdateTime() |
Object |
getObject() |
int |
getTimeout() |
boolean |
isExpired() |
void |
setObject(Object object) |
void |
setTimeout(int timeout) |
CacheElement |
touch() |
public CacheElement()
public CacheElement(Object object)
public CacheElement(Object object, int timeout)
public Object getObject()
public void setObject(Object object)
public long getLastUpdateTime()
public int getTimeout()
public void setTimeout(int timeout)
public CacheElement touch()
public boolean isExpired()
Copyright © 2022. All rights reserved.