| java.lang.Object org.apache.tomcat.util.buf.TimeStamp
TimeStamp | final public class TimeStamp implements Serializable(Code) | | 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.
author: Costin Manolache |
TimeStamp | public TimeStamp()(Code) | | |
getCreationTime | public long getCreationTime()(Code) | | |
getId | public int getId()(Code) | | Each object can have an unique id, similar with name but
providing faster access ( array vs. hashtable lookup )
|
getLastAccessedTime | public long getLastAccessedTime()(Code) | | |
getMaxInactiveInterval | public long getMaxInactiveInterval()(Code) | | Inactive interval in millis - the time is computed
in millis, convert to secs in the upper layer
|
getName | public MessageBytes getName()(Code) | | Return the "name" of the timestamp. This can be used
to associate unique identifier with each timestamped object.
The name is a MessageBytes - i.e. a modifiable byte[] or char[].
|
getThisAccessedTime | public long getThisAccessedTime()(Code) | | |
isNew | public boolean isNew()(Code) | | |
isValid | public boolean isValid()(Code) | | |
recycle | public void recycle()(Code) | | |
setCreationTime | public void setCreationTime(long time)(Code) | | |
setId | public void setId(int id)(Code) | | |
setMaxInactiveInterval | public void setMaxInactiveInterval(long interval)(Code) | | |
setNew | public void setNew(boolean isNew)(Code) | | |
setParent | public void setParent(Object o)(Code) | | Returns the owner of this stamp ( the object that is
time-stamped ).
For a
|
setValid | public void setValid(boolean isValid)(Code) | | |
touch | public void touch(long time)(Code) | | Access notification. This method takes a time parameter in order
to allow callers to efficiently manage expensive calls to
System.currentTimeMillis()
|
|
|