public interface PooledDataSourceFactory
| Modifier and Type | Method and Description |
|---|---|
void |
asSingleConnectionPool()
Configures the pool as a single connection pool.
|
ManagedDataSource |
build(com.codahale.metrics.MetricRegistry metricRegistry,
String name)
Builds a new JDBC data source backed by the connection pool
and managed by Dropwizard.
|
String |
getDriverClass()
Returns the Java class of the database driver.
|
String |
getHealthCheckValidationQuery()
Deprecated.
|
Optional<Duration> |
getHealthCheckValidationTimeout()
Deprecated.
|
Map<String,String> |
getProperties()
Returns the configuration properties for ORM tools.
|
String |
getUrl()
Returns the JDBC connection URL.
|
Optional<String> |
getValidationQuery()
Returns the SQL query, which is being used for the database
connection health check.
|
Optional<Duration> |
getValidationQueryTimeout()
Returns the timeout for awaiting a response from the database
during connection health checks.
|
boolean |
isAutoCommentsEnabled()
Whether ORM tools allowed to add comments to SQL queries.
|
boolean isAutoCommentsEnabled()
true, if allowedMap<String,String> getProperties()
Optional<Duration> getValidationQueryTimeout()
Duration@Deprecated Optional<Duration> getHealthCheckValidationTimeout()
getValidationQueryTimeout()DurationOptional<String> getValidationQuery()
@Deprecated String getHealthCheckValidationQuery()
getValidationQuery()String getDriverClass()
String getUrl()
void asSingleConnectionPool()
ManagedDataSource build(com.codahale.metrics.MetricRegistry metricRegistry, String name)
metricRegistry - the application metric registryname - name of the connection poolManagedDataSourceCopyright © 2020. All rights reserved.