EnableCancelTimeout
- Last Updated: September 3, 2021
- 1 minute read
- DataDirect Connectors
- JDBC
- PostgreSQL 6.0
- Documentation
Purpose
Determines whether a cancel request that is sent by the driver as the result of a query timing out is subject to the same query timeout value as the statement it cancels.
Valid Values
true | false
If
set to true, the cancel request times out using
the same timeout value, in seconds, that is set for the statement
it cancels. For example, if your application calls Statement.setQueryTimeout(5) on
a statement and that statement is cancelled because its timeout
value was exceeded, the driver sends a cancel request that also
will time out if its execution exceeds 5 seconds. If the cancel
request times out, because the server is down, for example, the
driver throws an exception indicating that the cancel request was
timed out and the connection is no longer valid.
If set to false,
the cancel request does not time out.
Data Source Methods
public Boolean
getEnableCancelTimeout()
public void
setEnableCancelTimeout(Boolean)
Default
false
Data Type
Boolean