Package org.apache.struts2.inject.util
Class FinalizableReferenceQueue
Starts a background thread that cleans up after reclaimed referents.
- Author:
- Bob Lee (crazybob@google.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceQueue<Object>Gets instance.static voidStops the cleanup thread and clears the instance to prevent classloader memory leaks during hot redeployment.Methods inherited from class java.lang.ref.ReferenceQueue
poll, remove, remove
-
Method Details
-
getInstance
Gets instance. -
stopAndClear
public static void stopAndClear()Stops the cleanup thread and clears the instance to prevent classloader memory leaks during hot redeployment.
-