Class StatementCancelTimerTask
java.lang.Object
java.util.TimerTask
org.postgresql.jdbc.StatementCancelTimerTask
- All Implemented Interfaces:
Runnable
Timer task that sends
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class TimerTask
scheduledExecutionTime
-
Field Details
-
statement
-
-
Constructor Details
-
StatementCancelTimerTask
StatementCancelTimerTask(PgStatement statement)
-
-
Method Details
-
cancel
-
run
-