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

pack-priv final Class CleanerJava6

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.Field, .Method, java.nio.ByteBuffer, java.security.AccessController, .PrivilegedAction

Allows to free direct ByteBuffer by using Cleaner. This is encapsulated in an extra class to be able to use PlatformDependent0 on Android without problems. For more details see #2604.

Field Summary

Modifier and TypeField and Description
private static final Method
private static final Field
private static final long
private static final InternalLogger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

Field Detail

CLEAN_METHODback to summary
private static final Method CLEAN_METHOD
CLEANER_FIELDback to summary
private static final Field CLEANER_FIELD
CLEANER_FIELD_OFFSETback to summary
private static final long CLEANER_FIELD_OFFSET
loggerback to summary
private static final InternalLogger logger

Constructor Detail

CleanerJava6back to summary
pack-priv CleanerJava6()

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
freeDirectBuffer0back to summary
private static void freeDirectBuffer0(ByteBuffer buffer) throws Exception
freeDirectBufferPrivilegedback to summary
private static void freeDirectBufferPrivileged(final ByteBuffer buffer)
isSupportedback to summary
pack-priv static boolean isSupported()