Package org.elasticsearch.nativeaccess
Interface CloseableByteBuffer
- All Superinterfaces:
AutoCloseable
A wrapper around a native
ByteBuffer
which allows that buffer to be
closed synchronously. This is in contrast to JDK created native buffers
which are deallocated only after GC has cleaned up references to
the buffer.-
Method Summary
-
Method Details
-
buffer
ByteBuffer buffer()Returns the wrappedByteBuffer
. -
close
void close()- Specified by:
close
in interfaceAutoCloseable
-