org.hd.d.pg2k.webSvr.virtualHosts.AlohaEarth
Class AlohaEarthMapCache.EFHook

java.lang.Object
  extended by org.hd.d.pg2k.webSvr.virtualHosts.AlohaEarth.AlohaEarthMapCache.EFHook
All Implemented Interfaces:
java.lang.Runnable, MemoryTools.RecurrentEmergencyFreeHandle
Enclosing class:
AlohaEarthMapCache

private static final class AlohaEarthMapCache.EFHook
extends java.lang.Object
implements MemoryTools.RecurrentEmergencyFreeHandle

Emergency-free hook called in case of critical memory shortage. This calls clear() on each of the Hashtable values that is was constructed with.

This retains no references to the entire cache, just the clear()able bits.

This re-registers itself when it has been run.


Field Summary
private  java.util.Hashtable<?,?>[] caches
           
 
Constructor Summary
AlohaEarthMapCache.EFHook(java.util.Hashtable<?,?>[] caches)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

caches

private final java.util.Hashtable<?,?>[] caches
Constructor Detail

AlohaEarthMapCache.EFHook

AlohaEarthMapCache.EFHook(java.util.Hashtable<?,?>[] caches)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

DHD Multimedia Gallery V1.53.0

Copyright (c) 1996-2009, Damon Hart-Davis. All rights reserved.