Package io.undertow.server
Class DirectByteBufferDeallocator
- java.lang.Object
-
- io.undertow.server.DirectByteBufferDeallocator
-
public final class DirectByteBufferDeallocator extends Object
DirectByteBufferDeallocatorUtility class used to free direct buffer memory.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidfree(ByteBuffer buffer)Attempts to deallocate the underlying direct memory.
-
-
-
Method Detail
-
free
public static void free(ByteBuffer buffer)
Attempts to deallocate the underlying direct memory. This is a no-op for buffers whereByteBuffer.isDirect()returns false.- Parameters:
buffer- to deallocate
-
-