Class ByteBufferUtil


  • public final class ByteBufferUtil
    extends java.lang.Object
    This is fork of ElasticSearch's ByteBufferAllocator.Cleaner class
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ByteBufferUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void destroy​(java.nio.ByteBuffer buffer)
      Destroy the given ByteBuffer if possible
      • Methods inherited from class java.lang.Object

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

      • CLEAN_SUPPORTED

        private static final boolean CLEAN_SUPPORTED
      • directBufferCleaner

        private static final java.lang.reflect.Method directBufferCleaner
      • directBufferCleanerClean

        private static final java.lang.reflect.Method directBufferCleanerClean
    • Constructor Detail

      • ByteBufferUtil

        private ByteBufferUtil()
    • Method Detail

      • destroy

        public static void destroy​(java.nio.ByteBuffer buffer)
        Destroy the given ByteBuffer if possible