public class NativeReference<T> extends PhantomReference<T>
CleanUpAction to a PhantomReference.
This allows to perform additional clean up operation before the reference is cleared by the garbage collector.
ReferenceMonitor| Modifier and Type | Field and Description |
|---|---|
long |
id |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Performs the
CleanUpAction passed in
NativeReference(long, Object, ReferenceQueue, CleanUpAction). |
getclear, enqueue, isEnqueuedpublic void cleanUp()
CleanUpAction passed in
NativeReference(long, Object, ReferenceQueue, CleanUpAction).Copyright © 2020. All rights reserved.