Package io.atomix.utils.memory
Class BufferCleaner
- java.lang.Object
-
- io.atomix.utils.memory.BufferCleaner
-
public class BufferCleaner extends Object
Utility class which allows explicit calls to the DirectByteBuffer cleaner method instead of relying on GC.
-
-
Constructor Summary
Constructors Constructor Description BufferCleaner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidfreeBuffer(ByteBuffer buffer)FreeByteBufferif possible.
-
-
-
Method Detail
-
freeBuffer
public static void freeBuffer(ByteBuffer buffer) throws IOException
FreeByteBufferif possible.- Throws:
IOException
-
-