Package com.mysql.cj
Class CancelQueryTaskImpl
java.lang.Object
java.util.TimerTask
com.mysql.cj.CancelQueryTaskImpl
- All Implemented Interfaces:
CancelQueryTask,java.lang.Runnable
public class CancelQueryTaskImpl extends java.util.TimerTask implements CancelQueryTask
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.
-
Constructor Summary
Constructors Constructor Description CancelQueryTaskImpl(Query cancellee) -
Method Summary
Modifier and Type Method Description booleancancel()java.lang.ThrowablegetCaughtWhileCancelling()QuerygetQueryToCancel()voidrun()voidsetCaughtWhileCancelling(java.lang.Throwable caughtWhileCancelling)voidsetQueryToCancel(Query queryToCancel)
-
Constructor Details
-
Method Details
-
cancel
public boolean cancel()- Specified by:
cancelin interfaceCancelQueryTask- Overrides:
cancelin classjava.util.TimerTask
-
run
public void run()- Specified by:
runin interfacejava.lang.Runnable- Specified by:
runin classjava.util.TimerTask
-
getCaughtWhileCancelling
public java.lang.Throwable getCaughtWhileCancelling()- Specified by:
getCaughtWhileCancellingin interfaceCancelQueryTask
-
setCaughtWhileCancelling
public void setCaughtWhileCancelling(java.lang.Throwable caughtWhileCancelling)- Specified by:
setCaughtWhileCancellingin interfaceCancelQueryTask
-
getQueryToCancel
- Specified by:
getQueryToCancelin interfaceCancelQueryTask
-
setQueryToCancel
- Specified by:
setQueryToCancelin interfaceCancelQueryTask
-