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

pack-priv final Class CleanerJava9

extends Object
implements Cleaner
Class Inheritance
All Implemented Interfaces
io.netty.util.internal.Cleaner
Imports
io.netty.util.internal.logging.InternalLogger, .InternalLoggerFactory, java.lang.reflect.InvocationTargetException, .Method, 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 Method
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_CLEANERback to summary
private static final Method INVOKE_CLEANER
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.netty.util.internal.Cleaner.freeDirectBuffer.

Doc from io.netty.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()