Top Description Fields Constructors Methods
org.xerial.snappy.pool

pack-priv final Class DirectByteBuffers

extends Object
Class Inheritance
Static Imports
java.lang.invoke.MethodHandles.constant, .MethodHandles.dropArguments, .MethodHandles.filterReturnValue, .MethodHandles.guardWithTest, .MethodHandles.lookup, .MethodType.methodType

Utility to facilitate disposing of direct byte buffer instances.

Field Summary

Modifier and TypeField and Description
pack-priv static final MethodHandle
pack-priv static final Class<? extends ByteBuffer>
DIRECT_BUFFER_CLAZZ

Sun specific mechanisms to clean up resources associated with direct byte buffers.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static Class<?>
pack-priv static boolean
public static void
releaseDirectByteBuffer(final ByteBuffer
The ByteBuffer to release. Must not be null. Must be direct.
buffer
)

Provides jvm implementation specific operation to aggressively release resources associated with buffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CLEAN_HANDLEback to summary
pack-priv static final MethodHandle CLEAN_HANDLE
DIRECT_BUFFER_CLAZZback to summary
pack-priv static final Class<? extends ByteBuffer> DIRECT_BUFFER_CLAZZ

Sun specific mechanisms to clean up resources associated with direct byte buffers.

Annotations
@SuppressWarnings:unchecked

Constructor Detail

DirectByteBuffersback to summary
pack-priv DirectByteBuffers()

Method Detail

lookupClassQuietlyback to summary
private static Class<?> lookupClassQuietly(String name)
nonNullback to summary
pack-priv static boolean nonNull(Object o)
releaseDirectByteBufferback to summary
public static void releaseDirectByteBuffer(final ByteBuffer buffer)

Provides jvm implementation specific operation to aggressively release resources associated with buffer.

Parameters
buffer:ByteBuffer

The ByteBuffer to release. Must not be null. Must be direct.