Package org.jboss.netty.util.internal
Class ByteBufferUtil
- java.lang.Object
-
- org.jboss.netty.util.internal.ByteBufferUtil
-
public final class ByteBufferUtil extends java.lang.Object
This is fork of ElasticSearch's ByteBufferAllocator.Cleaner class
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
CLEAN_SUPPORTED
private static java.lang.reflect.Method
directBufferCleaner
private static java.lang.reflect.Method
directBufferCleanerClean
-
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 givenByteBuffer
if possible
-