org.apache.jcs.utils.discovery
Class UDPCleanupRunner

java.lang.Object
  extended by org.apache.jcs.utils.discovery.UDPCleanupRunner
All Implemented Interfaces:
Runnable

public class UDPCleanupRunner
extends Object
implements Runnable

This class periodically check the lastHeardFrom time on the services.

If they exceed the configurable limit, it removes them from the set.

Author:
Aaron Smuts

Constructor Summary
UDPCleanupRunner(UDPDiscoveryService service)
           
 
Method Summary
 void run()
          This goes through the list of services and removes those that we haven't heard from in longer than the max idle time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDPCleanupRunner

public UDPCleanupRunner(UDPDiscoveryService service)
Parameters:
service - UDPDiscoveryService
Method Detail

run

public void run()
This goes through the list of services and removes those that we haven't heard from in longer than the max idle time.

Specified by:
run in interface Runnable
See Also:
Runnable.run()


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.