|
||||||||||
| 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 expiry)
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeWrapper(E obj,
long expiry)
obj - object to be referencedexpiry - object's idle time before death in milliseconds (0 - eternal)| Method Detail |
|---|
public E getObject()
updateAccessed() method.
public boolean isExpired()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||