Package org.xerial.snappy.pool
Class DirectByteBuffers
java.lang.Object
org.xerial.snappy.pool.DirectByteBuffers
Utility to facilitate disposing of direct byte buffer instances.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final MethodHandle
(package private) static final Class
<? extends ByteBuffer> Sun specific mechanisms to clean up resources associated with direct byte buffers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Class
<?> lookupClassQuietly
(String name) (package private) static boolean
static void
releaseDirectByteBuffer
(ByteBuffer buffer) Provides jvm implementation specific operation to aggressively release resources associated with buffer.
-
Field Details
-
DIRECT_BUFFER_CLAZZ
Sun specific mechanisms to clean up resources associated with direct byte buffers. -
CLEAN_HANDLE
-
-
Constructor Details
-
DirectByteBuffers
DirectByteBuffers()
-
-
Method Details
-
lookupClassQuietly
-
nonNull
-
releaseDirectByteBuffer
Provides jvm implementation specific operation to aggressively release resources associated with buffer.- Parameters:
buffer
- TheByteBuffer
to release. Must not benull
. Must bedirect
.
-