Note
this is a driver-internal class
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private @Nullable LazyCleaner. | |
| private static final LazyCleaner | |
| private static final Logger | |
| private final ReferenceQueue | |
| private final ThreadFactory | |
| private boolean | |
| private final long | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized <T extends Throwable> LazyCleaner. | |
| private synchronized boolean | |
| public static LazyCleaner | |
| public synchronized int | |
| public synchronized boolean | |
| public <T extends Throwable> LazyCleaner. | |
| private synchronized boolean | |
| private boolean |
| first | back to summary |
|---|---|
| private @Nullable LazyCleaner. | |
| instance | back to summary |
|---|---|
| private static final LazyCleaner instance | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| queue | back to summary |
|---|---|
| private final ReferenceQueue<Object> queue | |
| threadFactory | back to summary |
|---|---|
| private final ThreadFactory threadFactory | |
| threadRunning | back to summary |
|---|---|
| private boolean threadRunning | |
| threadTtl | back to summary |
|---|---|
| private final long threadTtl | |
| watchedCount | back to summary |
|---|---|
| private int watchedCount | |
| LazyCleaner | back to summary |
|---|---|
| public LazyCleaner(Duration threadTtl, final String threadName) | |
| LazyCleaner | back to summary |
|---|---|
| private LazyCleaner(Duration threadTtl, ThreadFactory threadFactory) | |
| add | back to summary |
|---|---|
| private synchronized <T extends Throwable> LazyCleaner. | |
| checkEmpty | back to summary |
|---|---|
| private synchronized boolean checkEmpty() | |
| getInstance | back to summary |
|---|---|
| public static LazyCleaner getInstance() Returns a default cleaner instance. Note this is driver-internal API.
| |
| getWatchedCount | back to summary |
|---|---|
| public synchronized int getWatchedCount() | |
| isThreadRunning | back to summary |
|---|---|
| public synchronized boolean isThreadRunning() | |
| register | back to summary |
|---|---|
| public <T extends Throwable> LazyCleaner. | |
| remove | back to summary |
|---|---|
| private synchronized boolean remove(LazyCleaner. | |
| startThread | back to summary |
|---|---|
| private boolean startThread() | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| clean | back to summary |
|---|---|
| public void clean() throws Cleanable:T | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| onClean | back to summary |
|---|---|
| public void onClean(boolean leak) throws CleaningAction:T | |
| Modifier and Type | Field and Description |
|---|---|
| private final @Nullable LazyCleaner. | |
| private @Nullable LazyCleaner. | |
| private @Nullable LazyCleaner. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| action | back to summary |
|---|---|
| private final @Nullable LazyCleaner. | |
| next | back to summary |
|---|---|
| private @Nullable LazyCleaner. Hides java. | |
| prev | back to summary |
|---|---|
| private @Nullable LazyCleaner. | |
| Node | back to summary |
|---|---|
| pack-priv Node(Object referent, LazyCleaner. | |
| clean | back to summary |
|---|---|
| public void clean() throws Node:T Implements org.
| |
| onClean | back to summary |
|---|---|
| public void onClean(boolean leak) throws Node:T Implements org.
| |