org.apache.directmemory.memory.allocator
Class DirectByteBufferUtils
java.lang.Object
org.apache.directmemory.memory.allocator.DirectByteBufferUtils
public class DirectByteBufferUtils
- extends Object
Utility class around direct ByteBuffer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectByteBufferUtils
public DirectByteBufferUtils()
destroyDirectByteBuffer
public static void destroyDirectByteBuffer(ByteBuffer buffer)
throws IllegalArgumentException,
IllegalAccessException,
InvocationTargetException,
SecurityException,
NoSuchMethodException
- Clear and release the internal content of a direct
ByteBuffer.
Clearing manually the content avoid waiting till the GC do his job.
- Parameters:
buffer - : the buffer to clear
- Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException
SecurityException
NoSuchMethodException
Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.