MCPcopy Create free account
hub / github.com/crate/crate / check

Method check

server/src/main/java/io/crate/session/Session.java:1112–1119  ·  view source on GitHub ↗
(String context)

Source from the content-addressed store, hash-verified

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.

Callers 3

parseMethod · 0.95
bulkExecMethod · 0.95
singleExecMethod · 0.95

Calls 3

ofMethod · 0.95
nanosMethod · 0.80
nanoTimeMethod · 0.80

Tested by

no test coverage detected