Package io.undertow.server
Class DirectByteBufferDeallocator
java.lang.Object
io.undertow.server.DirectByteBufferDeallocator
DirectByteBufferDeallocator
Utility class used to free direct buffer memory.-
Method Summary
Modifier and TypeMethodDescriptionstatic void
free
(ByteBuffer buffer) Attempts to deallocate the underlying direct memory.
-
Method Details
-
free
Attempts to deallocate the underlying direct memory. This is a no-op for buffers whereByteBuffer.isDirect()
returns false.- Parameters:
buffer
- to deallocate
-