|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.trendrr.oss.concurrent.ReinitObject<T>
public abstract class ReinitObject<T>
An object that will be lazily initialized, and reinitialize every X millis
| Constructor Summary | |
|---|---|
ReinitObject(long millisBetweenInit)
|
|
| Method Summary | |
|---|---|
void |
clearIfExpired()
clears the initialized object if it is expired. |
T |
get()
|
abstract T |
init()
|
boolean |
isExpired()
passively looks to see if this object needs to be re-initialized |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReinitObject(long millisBetweenInit)
| Method Detail |
|---|
public abstract T init()
public T get()
public boolean isExpired()
public void clearIfExpired()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||