org.apache.tomcat.util.buf
public final class TimeStamp extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
TimeStamp() |
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.