Object#finalize based resource deallocation
that is deprecated for removal from the JDK.
This class is intented to be used only be JNA itself.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private Thread | |
| private Cleaner. | |
| private static final Cleaner | |
| private final ReferenceQueue |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized Cleaner. | |
| public static Cleaner | |
| public synchronized Cleaner. | |
| private synchronized boolean |
| cleanerThread | back to summary |
|---|---|
| private Thread cleanerThread | |
| firstCleanable | back to summary |
|---|---|
| private Cleaner. | |
| INSTANCE | back to summary |
|---|---|
| private static final Cleaner INSTANCE | |
| referenceQueue | back to summary |
|---|---|
| private final ReferenceQueue<Object> referenceQueue | |
| Cleaner | back to summary |
|---|---|
| private Cleaner() | |
| add | back to summary |
|---|---|
| private synchronized Cleaner. | |
| getCleaner | back to summary |
|---|---|
| public static Cleaner getCleaner() | |
| register | back to summary |
|---|---|
| public synchronized Cleaner. | |
| remove | back to summary |
|---|---|
| private synchronized boolean remove(Cleaner. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| clean | back to summary |
|---|---|
| public void clean() | |
| Modifier and Type | Field and Description |
|---|---|
| private final Cleaner | |
| private final Runnable | |
| private Cleaner. | |
| private Cleaner. |
| Access | Constructor and Description |
|---|---|
| public | CleanerRef(Cleaner cleaner, Object referent, ReferenceQueue<? super Object> q, Runnable cleanupTask)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv Cleaner. | |
| pack-priv Cleaner. | |
| pack-priv void | |
| pack-priv void |
| cleaner | back to summary |
|---|---|
| private final Cleaner cleaner | |
| cleanupTask | back to summary |
|---|---|
| private final Runnable cleanupTask | |
| next | back to summary |
|---|---|
| private Cleaner. Hides java. | |
| previous | back to summary |
|---|---|
| private Cleaner. | |
| CleanerRef | back to summary |
|---|---|
| public CleanerRef(Cleaner cleaner, Object referent, ReferenceQueue<? super Object> q, Runnable cleanupTask) | |
| clean | back to summary |
|---|---|
| public void clean() Implements com.
| |
| getNext | back to summary |
|---|---|
| pack-priv Cleaner. | |
| getPrevious | back to summary |
|---|---|
| pack-priv Cleaner. | |
| setNext | back to summary |
|---|---|
| pack-priv void setNext(Cleaner. | |
| setPrevious | back to summary |
|---|---|
| pack-priv void setPrevious(Cleaner. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Overrides java. Implements java. |
| CLEANER_LINGER_TIME | back to summary |
|---|---|
| private static final long CLEANER_LINGER_TIME | |
| CleanerThread | back to summary |
|---|---|
| public CleanerThread() | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
| |