JXTA

net.jxta.impl.endpoint.router
Class Destinations.WisdomGCTask

java.lang.Object
  extended by java.util.TimerTask
      extended by net.jxta.impl.endpoint.router.Destinations.WisdomGCTask
All Implemented Interfaces:
Runnable
Enclosing class:
Destinations

 class Destinations.WisdomGCTask
extends TimerTask

Handles cleanup of expired wisdoms


Constructor Summary
Destinations.WisdomGCTask()
           
 
Method Summary
 void run()
          

garbage collector.

 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Destinations.WisdomGCTask

Destinations.WisdomGCTask()
Method Detail

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

JXSE