2015/07/26 - Apache DirectMemory has been retired.

For more information, please explore the Attic.

public class

DirectByteBufferUtils

extends Object
java.lang.Object
   ↳ org.apache.directmemory.memory.allocator.DirectByteBufferUtils

Class Overview

Utility class around direct ByteBuffer

Summary

Public Constructors
DirectByteBufferUtils()
Public Methods
static void destroyDirectByteBuffer(ByteBuffer buffer)
Clear and release the internal content of a direct ByteBuffer.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DirectByteBufferUtils ()

Public Methods

public static void destroyDirectByteBuffer (ByteBuffer buffer)

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
IllegalAccessException
IllegalArgumentException
InvocationTargetException
SecurityException