Unfortunately, the jdbc specification remains silent about the guarantees of Statement.cancel()
.
The only thing which is stated by the javadoc is that Statement.cancel()
is thread-safe.
But:
- Is it guaranteed that
cancel()
will always work?
(in a manner that the thread which is currently executing theStatement
will immediately unblock and continue) - Is it guaranteed that
cancel()
will not block and (more or less) return immediately?