Top Description Fields Constructors Methods
io.netty5.util.internal

pack-priv final Class CleanerJava9

extends Object
implements Cleaner
Class Inheritance
All Implemented Interfaces
io.netty5.util.internal.Cleaner
Imports
io.netty5.util.internal.logging.InternalLogger, .InternalLoggerFactory, java.lang.invoke.MethodHandle, .MethodHandles, .MethodType, java.nio.ByteBuffer, java.security.AccessController, .PrivilegedAction

Provide a way to clean a ByteBuffer on Java9+.

Field Summary

Modifier and TypeField and Description
private static final MethodHandle
private static final InternalLogger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
private static void
pack-priv static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INVOKE_CLEANER_HANDLEback to summary
private static final MethodHandle INVOKE_CLEANER_HANDLE
loggerback to summary
private static final InternalLogger logger

Constructor Detail

CleanerJava9back to summary
pack-priv CleanerJava9()

Method Detail

freeDirectBufferback to summary
public void freeDirectBuffer(ByteBuffer buffer)

Implements io.netty5.util.internal.Cleaner.freeDirectBuffer.

Doc from io.netty5.util.internal.Cleaner.freeDirectBuffer.

Free a direct ByteBuffer if possible

Annotations
@Override
freeDirectBufferPrivilegedback to summary
private static void freeDirectBufferPrivileged(final ByteBuffer buffer)
isSupportedback to summary
pack-priv static boolean isSupported()