Class ObjectCleaner
java.lang.Object
io.netty.util.internal.ObjectCleaner
@Deprecated
public final class ObjectCleaner
extends java.lang.Object
Deprecated.
The object cleaner is deprecated for removal.
Allows a way to register some
Runnable that will executed once there are no references to an Object
anymore.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final java.util.concurrent.atomic.AtomicBooleanDeprecated.private static final java.lang.RunnableDeprecated.(package private) static final java.lang.StringDeprecated.private static final java.util.Set<ObjectCleaner.AutomaticCleanerReference> Deprecated.private static final java.lang.ref.ReferenceQueue<java.lang.Object> Deprecated.private static final intDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intDeprecated.static voidregister(java.lang.Object object, java.lang.Runnable cleanupTask) Deprecated.Register the givenObjectfor which theRunnablewill be executed once there are no references to the object anymore.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
REFERENCE_QUEUE_POLL_TIMEOUT_MS
private static final int REFERENCE_QUEUE_POLL_TIMEOUT_MSDeprecated. -
CLEANER_THREAD_NAME
static final java.lang.String CLEANER_THREAD_NAMEDeprecated. -
LIVE_SET
Deprecated. -
REFERENCE_QUEUE
private static final java.lang.ref.ReferenceQueue<java.lang.Object> REFERENCE_QUEUEDeprecated. -
CLEANER_RUNNING
private static final java.util.concurrent.atomic.AtomicBoolean CLEANER_RUNNINGDeprecated. -
CLEANER_TASK
private static final java.lang.Runnable CLEANER_TASKDeprecated.
-
-
Constructor Details
-
ObjectCleaner
private ObjectCleaner()Deprecated.
-
-
Method Details
-
register
public static void register(java.lang.Object object, java.lang.Runnable cleanupTask) Deprecated.Register the givenObjectfor which theRunnablewill be executed once there are no references to the object anymore. This should only be used if there are no other ways to execute some cleanup once the Object is not reachable anymore because it is not a cheap way to handle the cleanup. -
getLiveSetCount
public static int getLiveSetCount()Deprecated.
-