Class HikariDataSourceSystemConfigurationConfigurer
java.lang.Object
com.flowable.platform.service.configuration.service.HikariDataSourceSystemConfigurationConfigurer
- All Implemented Interfaces:
SystemConfigurationConfigurer
public class HikariDataSourceSystemConfigurationConfigurer
extends Object
implements SystemConfigurationConfigurer
- Author:
- Filip Hrisafov
-
Field Summary
Modifier and TypeFieldDescriptionprotected final long
protected final long
protected final long
protected final int
protected final int
protected final long
protected final com.zaxxer.hikari.HikariConfigMXBean
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
-
Constructor Summary
ConstructorDescriptionHikariDataSourceSystemConfigurationConfigurer
(com.zaxxer.hikari.HikariConfigMXBean hikariConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyConfiguration
(com.fasterxml.jackson.databind.node.ObjectNode configuration) Apply the given configuration.void
If possible applies the default configuration.getType()
The type of the system configuration that this configurer is meant forvoid
validateConfiguration
(com.fasterxml.jackson.databind.node.ObjectNode configuration) Validate the configurationprotected void
validateConnectionTimeout
(com.fasterxml.jackson.databind.JsonNode fieldValue) protected void
validateIdleTimeout
(com.fasterxml.jackson.databind.JsonNode fieldValue) protected void
validateValidationTimeout
(com.fasterxml.jackson.databind.JsonNode fieldValue)
-
Field Details
-
PROPERTY_CONNECTION_TIMEOUT
- See Also:
-
PROPERTY_IDLE_TIMEOUT
- See Also:
-
PROPERTY_MAX_LIFETIME
- See Also:
-
PROPERTY_VALIDATION_TIMEOUT
- See Also:
-
PROPERTY_MAX_POOL_SIZE
- See Also:
-
PROPERTY_MINIMUM_IDLE
- See Also:
-
hikariConfig
protected final com.zaxxer.hikari.HikariConfigMXBean hikariConfig -
defaultConnectionTimeout
protected final long defaultConnectionTimeout -
defaultIdleTimeout
protected final long defaultIdleTimeout -
defaultMaxLifetime
protected final long defaultMaxLifetime -
defaultValidationTimeout
protected final long defaultValidationTimeout -
defaultMaxPoolSize
protected final int defaultMaxPoolSize -
defaultMinimumIdle
protected final int defaultMinimumIdle
-
-
Constructor Details
-
HikariDataSourceSystemConfigurationConfigurer
public HikariDataSourceSystemConfigurationConfigurer(com.zaxxer.hikari.HikariConfigMXBean hikariConfig)
-
-
Method Details
-
getType
Description copied from interface:SystemConfigurationConfigurer
The type of the system configuration that this configurer is meant for- Specified by:
getType
in interfaceSystemConfigurationConfigurer
-
applyDefaultConfiguration
public void applyDefaultConfiguration()Description copied from interface:SystemConfigurationConfigurer
If possible applies the default configuration.- Specified by:
applyDefaultConfiguration
in interfaceSystemConfigurationConfigurer
-
applyConfiguration
public void applyConfiguration(com.fasterxml.jackson.databind.node.ObjectNode configuration) Description copied from interface:SystemConfigurationConfigurer
Apply the given configuration.- Specified by:
applyConfiguration
in interfaceSystemConfigurationConfigurer
- Parameters:
configuration
- the configuration to apply
-
validateConfiguration
public void validateConfiguration(com.fasterxml.jackson.databind.node.ObjectNode configuration) Description copied from interface:SystemConfigurationConfigurer
Validate the configuration- Specified by:
validateConfiguration
in interfaceSystemConfigurationConfigurer
- Parameters:
configuration
- the configuration to validate
-
validateConnectionTimeout
protected void validateConnectionTimeout(com.fasterxml.jackson.databind.JsonNode fieldValue) -
validateIdleTimeout
protected void validateIdleTimeout(com.fasterxml.jackson.databind.JsonNode fieldValue) -
validateValidationTimeout
protected void validateValidationTimeout(com.fasterxml.jackson.databind.JsonNode fieldValue)
-