Class FinalizableReferenceQueue

java.lang.Object
java.lang.ref.ReferenceQueue<Object>
org.apache.struts2.inject.util.FinalizableReferenceQueue

public class FinalizableReferenceQueue extends ReferenceQueue<Object>
Starts a background thread that cleans up after reclaimed referents.
Author:
Bob Lee (crazybob@google.com)
  • Method Details

    • getInstance

      public static ReferenceQueue<Object> getInstance()
      Gets instance.
    • stopAndClear

      public static void stopAndClear()
      Stops the cleanup thread and clears the instance to prevent classloader memory leaks during hot redeployment.