|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnaq.util.TimeWrapper<E>
public class TimeWrapper<E>
Time-tracking wrapper class for an object.
ObjectPool
Constructor Summary | |
---|---|
TimeWrapper(E obj,
long expiryTime)
Creates a new wrapped object. |
Method Summary | |
---|---|
E |
getObject()
Returns the object referenced by this wrapper. |
boolean |
isExpired()
Whether this item has expired. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeWrapper(E obj, long expiryTime)
obj
- object to be referencedexpiryTime
- object's idle time before death in milliseconds (0 - eternal)Method Detail |
---|
public E getObject()
public boolean isExpired()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |