public class LazyCleaner
extends java.lang.Object
Note: this is a driver-internal class
Modifier and Type | Class and Description |
---|---|
static interface |
LazyCleaner.Cleanable<T extends java.lang.Throwable> |
static interface |
LazyCleaner.CleaningAction<T extends java.lang.Throwable> |
Constructor and Description |
---|
LazyCleaner(java.time.Duration threadTtl,
java.lang.String threadName) |
Modifier and Type | Method and Description |
---|---|
static LazyCleaner |
getInstance()
Returns a default cleaner instance.
|
int |
getWatchedCount() |
boolean |
isThreadRunning() |
<T extends java.lang.Throwable> |
register(java.lang.Object obj,
LazyCleaner.CleaningAction<T> action) |
public LazyCleaner(java.time.Duration threadTtl, java.lang.String threadName)
public static LazyCleaner getInstance()
Note: this is driver-internal API.
public <T extends java.lang.Throwable> LazyCleaner.Cleanable<T> register(java.lang.Object obj, LazyCleaner.CleaningAction<T> action)
public int getWatchedCount()
public boolean isThreadRunning()
Copyright © 2024 PostgreSQL Global Development Group. All rights reserved.