com.mysql.jdbc
Class Statement.CancelTask

java.lang.Object
  extended byjava.util.TimerTask
      extended bycom.mysql.jdbc.Statement.CancelTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Statement

class Statement.CancelTask
extends java.util.TimerTask

Thread used to implement query timeouts...Eventually we could be more efficient and have one thread with timers, but this is a straightforward and simple way to implement a feature that isn't used all that often.


Field Summary
(package private)  java.sql.SQLException caughtWhileCancelling
           
(package private)  long connectionId
           
 
Fields inherited from class java.util.TimerTask
 
Constructor Summary
(package private) Statement.CancelTask()
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionId

long connectionId

caughtWhileCancelling

java.sql.SQLException caughtWhileCancelling
Constructor Detail

Statement.CancelTask

Statement.CancelTask()
               throws java.sql.SQLException
Method Detail

run

public void run()