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.
|
com.google.common.base.Optional<io.dropwizard.util.Duration> |
getHealthCheckValidationTimeout()
Deprecated.
|
Map<String,String> |
getProperties()
Returns the configuration properties for ORM tools.
|
String |
getValidationQuery()
Returns the SQL query, which is being used for the database
connection health check.
|
com.google.common.base.Optional<io.dropwizard.util.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()
com.google.common.base.Optional<io.dropwizard.util.Duration> getValidationQueryTimeout()
Duration
@Deprecated com.google.common.base.Optional<io.dropwizard.util.Duration> getHealthCheckValidationTimeout()
getValidationQueryTimeout()
Duration
String getValidationQuery()
@Deprecated String getHealthCheckValidationQuery()
getValidationQuery()
String getDriverClass()
void asSingleConnectionPool()
ManagedDataSource build(com.codahale.metrics.MetricRegistry metricRegistry, String name)
metricRegistry
- the application metric registryname
- name of the connection poolManagedDataSource
Copyright © 2016. All rights reserved.