Package org.quickperf.sql.annotation
Annotation Type ExpectMaxQueryExecutionTime
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface ExpectMaxQueryExecutionTime
TheExpectMaxQueryExecutionTime
annotation verifies the query execution time is not greater than the specified value. If so, the test will fail.
Example:
@ExpectMaxQueryExecutionTime(thresholdInMilliSeconds = 2) public void execute() {
..
}
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
thresholdInMilliSeconds
Specifies avalue
(integer) to cause test method to fail if any query has a greater execution time.
-