Package one.nio.util

Class Cleaner


  • public class Cleaner
    extends java.lang.ref.WeakReference<java.lang.Object>
    Replacement for sun.misc.Cleaner. Use WeakReference instead of PhantomReference because of https://bugs.openjdk.java.net/browse/JDK-8071507
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  Cleaner.CleanerThread  
    • Constructor Summary

      Constructors 
      Constructor Description
      Cleaner​(java.lang.Object referent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clean()  
      • Methods inherited from class java.lang.ref.Reference

        clear, clone, enqueue, get, isEnqueued, reachabilityFence
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Cleaner

        public Cleaner​(java.lang.Object referent)
    • Method Detail

      • clean

        public void clean()