net.jini.jeri.connection
Class ConnectionManager.Reaper

java.lang.Object
  extended by net.jini.jeri.connection.ConnectionManager.Reaper
All Implemented Interfaces:
Runnable
Enclosing class:
ConnectionManager

private static final class ConnectionManager.Reaper
extends Object
implements Runnable

Records idle times in muxes and shuts down muxes that have been idle for at least TIMEOUT milliseconds.


Constructor Summary
ConnectionManager.Reaper()
           
 
Method Summary
 void run()
          Sleep for TIMEOUT milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionManager.Reaper

ConnectionManager.Reaper()
Method Detail

run

public void run()
Sleep for TIMEOUT milliseconds. Then call checkIdle on each manager with open muxes, shutdown all of idle muxes that have been collected, and if no managers with open muxes remain terminate, else repeat (go back to sleep).

Specified by:
run in interface Runnable


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.