Class StatementCancelTimerTask

java.lang.Object
java.util.TimerTask
org.postgresql.jdbc.StatementCancelTimerTask
All Implemented Interfaces:
Runnable

class StatementCancelTimerTask extends TimerTask
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 Details

  • Constructor Details

    • StatementCancelTimerTask

      StatementCancelTimerTask(PgStatement statement)
  • Method Details