net.jxta.impl.endpoint.router
Class Destinations.WisdomGCTask
java.lang.Object
java.util.TimerTask
net.jxta.impl.endpoint.router.Destinations.WisdomGCTask
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- Destinations
class Destinations.WisdomGCTask
- extends TimerTask
Handles cleanup of expired wisdoms
Method Summary |
void |
run()
garbage collector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Destinations.WisdomGCTask
Destinations.WisdomGCTask()
run
public void run()
-
garbage collector. We use soft references to messengers, but we use
a strong hashmap to keep the wisdom around in a more predictable
manner. Entries are simply removed when they no-longer carry
relevant information; so there's no change in the total meaning of
the map when an entry is removed.
- Specified by:
run
in interface Runnable
- Specified by:
run
in class TimerTask