public class SqlConfig extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_STATEMENT_TIMEOUT_MILLIS
Default timeout in milliseconds that is applied to statements without explicit timeout.
|
Constructor and Description |
---|
SqlConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getStatementTimeoutMillis()
Gets the timeout in milliseconds that is applied to statements without an explicit timeout.
|
int |
hashCode() |
SqlConfig |
setStatementTimeoutMillis(long statementTimeoutMillis)
Sets the timeout in milliseconds that is applied to statements without an explicit timeout.
|
String |
toString() |
public static final int DEFAULT_STATEMENT_TIMEOUT_MILLIS
public long getStatementTimeoutMillis()
public SqlConfig setStatementTimeoutMillis(long statementTimeoutMillis)
It is possible to set a timeout through the SqlStatement.setTimeoutMillis(long)
method. If the statement
timeout is not set, then the value of this parameter will be used.
Zero value means no timeout. Negative values are prohibited.
Defaults to DEFAULT_STATEMENT_TIMEOUT_MILLIS
.
statementTimeoutMillis
- timeout in millisecondsSqlStatement.setTimeoutMillis(long)
Copyright © 2024 Hazelcast, Inc.. All rights reserved.