net.jini.jeri.ssl
Class HttpsEndpoint.Reaper

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

private static final class HttpsEndpoint.Reaper
extends Object
implements Runnable

Records idle times in connections and shuts them down if they have been idle for at least IDLE_TIMEOUT milliseconds.


Constructor Summary
HttpsEndpoint.Reaper()
          Non-private constructor to avoid accessor methods.
 
Method Summary
 void run()
          Sleep for IDLE_TIMEOUT milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpsEndpoint.Reaper

HttpsEndpoint.Reaper()
Non-private constructor to avoid accessor methods.

Method Detail

run

public void run()
Sleep for IDLE_TIMEOUT milliseconds. Then call checkIdle on each connection, and, if that returns true, remove the connection from the list of idle connections. Then shutdown all of the idle connections that have been collected. Terminate if no connections remain, else wait for the next timeout.

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.