|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.erights.e.extern.timer.Retainer
Untamed: Used as a timed self-removing persistent key in a map.
After construction or unserialization, the Retainer isn't in a valid state until init() is called. We don't automate this with readResolve() in order to avoid a circular unserialization bug.
| Field Summary | |
protected long |
myOptExpirationDate
|
private FlexMap |
myOptRetainers
|
private Timeout |
myOptTimeout
|
protected Timer |
myOptTimer
|
(package private) static long |
serialVersionUID
|
| Fields inherited from interface org.erights.e.elib.serial.Persistent |
HONORARY, HONORED_NAMES |
| Constructor Summary | |
Retainer()
Enabled: optExpirationDate defaults to forever ( java.lang.Long#MAX_VALUE), so optTimer also defaults to null. |
|
Retainer(Timer optTimer,
long optExpirationDate)
Enabled: |
|
| Method Summary | |
protected void |
init(FlexMap retainers)
After construction or unserialization, the Retainer isn't in a valid state until init() is called. |
void |
run()
Enabled: |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final long serialVersionUID
private transient FlexMap myOptRetainers
protected Timer myOptTimer
private Timeout myOptTimeout
protected long myOptExpirationDate
| Constructor Detail |
public Retainer()
java.lang.Long#MAX_VALUE), so optTimer also defaults to null.
public Retainer(Timer optTimer,
long optExpirationDate)
optTimer - May be null ONLY if optExpirationDate is Long.MAX_VALUE.optExpirationDate - | Method Detail |
protected void init(FlexMap retainers)
retainers - This retainer will remove itself as a key from
retainers when it expires or is invoked.public void run()
run in interface Runnablejava.lang.Thread#run()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||