Package org.hawaiiframework.async.sql
Class QueryTaskAbortStrategy
- java.lang.Object
 - 
- org.hawaiiframework.async.sql.QueryTaskAbortStrategy
 
 
- 
- All Implemented Interfaces:
 TaskAbortStrategy
public class QueryTaskAbortStrategy extends Object implements TaskAbortStrategy
A query abort strategy.The
QueryTaskAbortStrategywill callStatement.cancel()in order to stop a query. It depends on the JDBC driver and database whether the cancel request is honoured. 
- 
- 
Constructor Summary
Constructors Constructor Description QueryTaskAbortStrategy(Statement statement)Create a new instance for the givenstatement. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaninvoke()Invoke the strategy in order to abort the task (that registered this abort strategy). 
 - 
 
- 
- 
Constructor Detail
- 
QueryTaskAbortStrategy
public QueryTaskAbortStrategy(Statement statement)
Create a new instance for the givenstatement.- Parameters:
 statement- The statement to abort.
 
 - 
 
- 
Method Detail
- 
invoke
public boolean invoke()
Invoke the strategy in order to abort the task (that registered this abort strategy).- Specified by:
 invokein interfaceTaskAbortStrategy
 
 - 
 
 -