private static class GenericStatementContext.CancelQueryTask
extends java.util.TimerTask
Modifier and Type | Field and Description |
---|---|
private StatementContext |
statementContext
Reference to the StatementContext for the executing statement
which might time out.
|
Constructor and Description |
---|
CancelQueryTask(StatementContext ctx)
Initializes a new task for timing out a statement's execution.
|
Modifier and Type | Method and Description |
---|---|
void |
forgetContext()
Stops this task and prevents it from cancelling a statement.
|
void |
run()
Invoked by a Timer class to cancel an executing statement.
|
private StatementContext statementContext
public CancelQueryTask(StatementContext ctx)
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public void forgetContext()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.