Package com.hazelcast.config
Class SqlConfig
java.lang.Object
com.hazelcast.config.SqlConfig
SQL service configuration.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default timeout in milliseconds that is applied to statements without explicit timeout. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Gets the timeout in milliseconds that is applied to statements without an explicit timeout.int
hashCode()
boolean
Returnstrue
if persistence is enabled for SQL Catalog.setCatalogPersistenceEnabled
(boolean catalogPersistenceEnabled) Sets whether SQL Catalog persistence is enabled for the node.void
setJavaReflectionFilterConfig
(JavaSerializationFilterConfig javaReflectionFilterConfig) Allows to configure reflection protection filter.setStatementTimeoutMillis
(long statementTimeoutMillis) Sets the timeout in milliseconds that is applied to statements without an explicit timeout.toString()
-
Field Details
-
DEFAULT_STATEMENT_TIMEOUT_MILLIS
public static final int DEFAULT_STATEMENT_TIMEOUT_MILLISDefault timeout in milliseconds that is applied to statements without explicit timeout.- See Also:
-
-
Constructor Details
-
SqlConfig
public SqlConfig()
-
-
Method Details
-
getStatementTimeoutMillis
public long getStatementTimeoutMillis()Gets the timeout in milliseconds that is applied to statements without an explicit timeout.- Returns:
- timeout in milliseconds
-
setStatementTimeoutMillis
Sets the timeout in milliseconds that is applied to statements without an explicit timeout.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
.- Parameters:
statementTimeoutMillis
- timeout in milliseconds- Returns:
- this instance for chaining
- See Also:
-
isCatalogPersistenceEnabled
public boolean isCatalogPersistenceEnabled()Returnstrue
if persistence is enabled for SQL Catalog.- Returns:
true
if persistence is enabled for SQL Catalog
-
setCatalogPersistenceEnabled
Sets whether SQL Catalog persistence is enabled for the node. With SQL Catalog persistence enabled you can restart the whole cluster without losing schema definition objects (such as MAPPINGs, TYPEs, VIEWs and DATA CONNECTIONs). The feature is implemented on top of the Hot Restart feature of Hazelcast which persists the data to disk. If enabled, you have to also configure Hot Restart. Feature is disabled by default. If you enable this option in open-source, the member will fail to start, you need Enterprise to run it and obtain a license from Hazelcast.- Parameters:
catalogPersistenceEnabled
- to enable or disable persistence for SQL Catalog- Returns:
- this config instance
-
getJavaReflectionFilterConfig
- Returns:
- the reflection filter, the configuration of restrictions on class usage in SQL mapping and UDT.
-
setJavaReflectionFilterConfig
Allows to configure reflection protection filter. Enable the configuration of restrictions on class usage in SQL mapping and UDT.- Parameters:
JavaSerializationFilterConfig
- the filter config to set (may benull
)
-
toString
-
equals
-
hashCode
public int hashCode()
-