public class CacheObject extends Object implements Serializable
限定符和类型 | 字段和说明 |
---|---|
static int |
TIME_DAY |
static int |
TIME_HOUR |
static int |
TIME_MIN |
static int |
TIME_MONTH |
static int |
TIME_SEC |
static int |
TIME_WEEK |
构造器和说明 |
---|
CacheObject() |
CacheObject(String group,
String id,
Serializable object) |
CacheObject(String group,
String id,
Serializable object,
long period) |
限定符和类型 | 方法和说明 |
---|---|
long |
getExpired() |
String |
getGroup() |
String |
getId() |
Serializable |
getObject() |
long |
getPeriod() |
long |
getTimestamp() |
boolean |
isExpired() |
void |
setGroup(String group) |
void |
setId(String id) |
void |
setObject(Serializable object) |
void |
setPeriod(long period) |
void |
setTimestamp(long timestamp) |
String |
toString() |
public static final int TIME_SEC
public static final int TIME_MIN
public static final int TIME_HOUR
public static final int TIME_DAY
public static final int TIME_WEEK
public static final int TIME_MONTH
public CacheObject()
public CacheObject(String group, String id, Serializable object)
public CacheObject(String group, String id, Serializable object, long period)
public String getId()
public void setId(String id)
public String getGroup()
public void setGroup(String group)
public long getTimestamp()
public void setTimestamp(long timestamp)
public long getPeriod()
public void setPeriod(long period)
public Serializable getObject()
public void setObject(Serializable object)
public boolean isExpired()
public long getExpired()