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() |
boolean |
isCatalogPersistenceEnabled()
Returns
true if persistence is enabled for SQL Catalog. |
SqlConfig |
setCatalogPersistenceEnabled(boolean catalogPersistenceEnabled)
Sets whether SQL Catalog persistence is enabled for the node.
|
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)
public boolean isCatalogPersistenceEnabled()
true
if persistence is enabled for SQL Catalog.true
if persistence is enabled for SQL Catalogpublic SqlConfig setCatalogPersistenceEnabled(boolean catalogPersistenceEnabled)
catalogPersistenceEnabled
- to enable or disable persistence for SQL CatalogCopyright © 2023 Hazelcast, Inc.. All rights reserved.