Class DefaultDatabaseConfigHelper
- java.lang.Object
-
- com.atlassian.confluence.impl.util.db.DefaultDatabaseConfigHelper
-
- All Implemented Interfaces:
DatabaseConfigHelper
@Internal @ReturnValuesAreNonnullByDefault public class DefaultDatabaseConfigHelper extends Object implements DatabaseConfigHelper
Production implementation ofDatabaseConfigHelper
.- Since:
- 6.13
-
-
Constructor Summary
Constructors Constructor Description DefaultDatabaseConfigHelper(com.atlassian.config.db.HibernateConfig hibernateConfig, DataSourceConfiguration dataSourceConfiguration, SingleConnectionProvider databaseHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Integer>
getConnectionPoolSize()
Returns the maximum size of the database connection pool.Optional<String>
getProductName()
Returns the database product name.
-
-
-
Constructor Detail
-
DefaultDatabaseConfigHelper
public DefaultDatabaseConfigHelper(com.atlassian.config.db.HibernateConfig hibernateConfig, DataSourceConfiguration dataSourceConfiguration, SingleConnectionProvider databaseHelper)
-
-
Method Detail
-
getConnectionPoolSize
public Optional<Integer> getConnectionPoolSize()
Description copied from interface:DatabaseConfigHelper
Returns the maximum size of the database connection pool.- Specified by:
getConnectionPoolSize
in interfaceDatabaseConfigHelper
- Returns:
- the maximum size database connection pool or empty if not found.
-
getProductName
public Optional<String> getProductName()
Description copied from interface:DatabaseConfigHelper
Returns the database product name.- Specified by:
getProductName
in interfaceDatabaseConfigHelper
- Returns:
- the database product name or empty if not found.
-
-