Package com.hazelcast.config
Class SqlConfig
java.lang.Object
com.hazelcast.config.SqlConfig
SQL service configuration.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intDefault timeout in milliseconds that is applied to statements without explicit timeout.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanlongGets the timeout in milliseconds that is applied to statements without an explicit timeout.inthashCode()booleanReturnstrueif persistence is enabled for SQL Catalog.setCatalogPersistenceEnabled(boolean catalogPersistenceEnabled) Sets whether SQL Catalog persistence is enabled for the node.voidsetJavaReflectionFilterConfig(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_MILLISpublic static final int DEFAULT_STATEMENT_TIMEOUT_MILLISDefault timeout in milliseconds that is applied to statements without explicit timeout.- See Also:
 
 
- 
- 
Constructor Details- 
SqlConfigpublic SqlConfig()
 
- 
- 
Method Details- 
getStatementTimeoutMillispublic long getStatementTimeoutMillis()Gets the timeout in milliseconds that is applied to statements without an explicit timeout.- Returns:
- timeout in milliseconds
 
- 
setStatementTimeoutMillisSets 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:
 
- 
isCatalogPersistenceEnabledpublic boolean isCatalogPersistenceEnabled()Returnstrueif persistence is enabled for SQL Catalog.- Returns:
- trueif persistence is enabled for SQL Catalog
 
- 
setCatalogPersistenceEnabledSets 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.
 
- 
setJavaReflectionFilterConfigAllows 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 be- null)
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-