(String context)
| 1110 | } |
| 1111 | |
| 1112 | public void check(String context) { |
| 1113 | if (enabled && statementTimeout.nanos() > 0) { |
| 1114 | long durationNs = System.nanoTime() - startNanos; |
| 1115 | if (durationNs > statementTimeout.nanos()) { |
| 1116 | throw JobKilledException.of("statement_timeout (" + statementTimeout + "/" + context + ")"); |
| 1117 | } |
| 1118 | } |
| 1119 | } |
| 1120 | |
| 1121 | /** |
| 1122 | * Disables the token. |