|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.buf.TimeStamp
public final class TimeStamp
Main tool for object expiry. Marks creation and access time of an "expirable" object, and extra properties like "id", "valid", etc. Used for objects that expire - originally Sessions, but also Contexts, Servlets, cache - or any other object that expires.
Constructor Summary | |
---|---|
TimeStamp()
|
Method Summary | |
---|---|
long |
getCreationTime()
|
int |
getId()
Each object can have an unique id, similar with name but providing faster access ( array vs. hashtable lookup ) |
long |
getLastAccessedTime()
|
long |
getMaxInactiveInterval()
Inactive interval in millis - the time is computed in millis, convert to secs in the upper layer |
MessageBytes |
getName()
Return the "name" of the timestamp. |
java.lang.Object |
getParent()
|
long |
getThisAccessedTime()
|
boolean |
isNew()
|
boolean |
isValid()
|
void |
recycle()
|
void |
setCreationTime(long time)
|
void |
setId(int id)
|
void |
setMaxInactiveInterval(long interval)
|
void |
setNew(boolean isNew)
|
void |
setParent(java.lang.Object o)
Returns the owner of this stamp ( the object that is time-stamped ). |
void |
setValid(boolean isValid)
|
void |
touch(long time)
Access notification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeStamp()
Method Detail |
---|
public void touch(long time)
public MessageBytes getName()
public int getId()
public void setId(int id)
public void setParent(java.lang.Object o)
public java.lang.Object getParent()
public void setCreationTime(long time)
public long getLastAccessedTime()
public long getThisAccessedTime()
public long getMaxInactiveInterval()
public void setMaxInactiveInterval(long interval)
public boolean isValid()
public void setValid(boolean isValid)
public boolean isNew()
public void setNew(boolean isNew)
public long getCreationTime()
public void recycle()
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |