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