java.lang.Object
net.i2p.data.SDSCache.Shutdown
All Implemented Interfaces:
Runnable
Enclosing class:
SDSCache<V extends SimpleDataStructure>

private static class SDSCache.Shutdownextends Object implements Runnable
Saves the cache when the router shuts down.
  • Field Details

    • _cache

      private final SDSCache _cache
      The cache being shut down.
  • Constructor Details

    • Shutdown

      Shutdown(SDSCache cache)
      Builds the hook closing one cache.
      Parameters:
      cache - the cache to close
  • Method Details

    • run

      public void run()
      Clear the cache on shutdown.
      Specified by:
      run in interface Runnable