class StatementCancelTimerTask
extends java.util.TimerTask
statement.cancel() signal to support Statement.setQueryTimeout(int).
We explicitly nullify the reference to statement to help GC since java.util.TimerThread
might keep reference to the latest executed task in its local variable.| Modifier and Type | Field and Description |
|---|---|
private PgStatement |
statement |
| Constructor and Description |
|---|
StatementCancelTimerTask(PgStatement statement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel() |
void |
run() |
private PgStatement statement
StatementCancelTimerTask(PgStatement statement)