Package io.quarkus.datasource.runtime
Class DataSourceSupport
java.lang.Object
io.quarkus.datasource.runtime.DataSourceSupport
Helper class that holds the names of all configured data sources,
along with the names of those that are inactive or excluded from health checks.
This is used by any feature that needs runtime access to data sources, e.g. Flyway/Liquibase or health check implementation classes.
-
Constructor Summary
ConstructorsConstructorDescriptionDataSourceSupport(Set<String> healthCheckExcludedNames, Set<String> inactiveNames) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.This may not account for datasources deactivated automatically (due to missing configuration, ...).Deprecated.This may not account for datasources deactivated automatically (due to missing configuration, ...).
-
Constructor Details
-
DataSourceSupport
-
-
Method Details
-
getInactiveNames
Deprecated.This may not account for datasources deactivated automatically (due to missing configuration, ...). To check if a datasource bean is active, useArc.container().select(...).getHandle().getBean().isActive(). Alternatively, to check if a datasource is active, use the utilsAgroalDataSourceUtil#dataSourceIfActive(...)/AgroalDataSourceUtil#activeDataSourceNames()orReactiveDataSourceUtil#dataSourceIfActive(...)/ReactiveDataSourceUtil#activeDataSourceNames(). -
getInactiveOrHealthCheckExcludedNames
Deprecated.This may not account for datasources deactivated automatically (due to missing configuration, ...). To check if a datasource is excluded from health checks, usegetHealthCheckExcludedNames(). To check if a datasource bean is active, useArc.container().select(...).getHandle().getBean().isActive(). Alternatively, to check if a datasource is active, use the utilsAgroalDataSourceUtil#dataSourceIfActive(...)/AgroalDataSourceUtil#activeDataSourceNames()orReactiveDataSourceUtil#dataSourceIfActive(...)/ReactiveDataSourceUtil#activeDataSourceNames(). -
getHealthCheckExcludedNames
-