Class BufferCleaner


  • class BufferCleaner
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.reflect.Method method  
      (package private) java.lang.Object theUnsafe  
      (package private) java.lang.Class<?> unmappableBufferClass  
    • Constructor Summary

      Constructors 
      Constructor Description
      BufferCleaner​(java.lang.Class<?> unmappableBufferClass, java.lang.reflect.Method method, java.lang.Object theUnsafe)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void freeBuffer​(java.lang.String resourceDescription, java.nio.ByteBuffer buffer)  
      (package private) static java.lang.Object unmapHackImpl()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • unmappableBufferClass

        java.lang.Class<?> unmappableBufferClass
      • method

        final java.lang.reflect.Method method
      • theUnsafe

        final java.lang.Object theUnsafe
    • Constructor Detail

      • BufferCleaner

        BufferCleaner​(java.lang.Class<?> unmappableBufferClass,
                      java.lang.reflect.Method method,
                      java.lang.Object theUnsafe)
    • Method Detail

      • freeBuffer

        void freeBuffer​(java.lang.String resourceDescription,
                        java.nio.ByteBuffer buffer)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • unmapHackImpl

        static java.lang.Object unmapHackImpl()