This Dropwizard bundle adds support for the excellent HikariCP database connection pool library. This includes metrics and healthchecks support.
<dependency>
<groupId>uk.co.deloittedigital.dropwizard</groupId>
<artifactId>dropwizard-hikaricp</artifactId>
<version>1.0.0</version>
</dependency>
compile 'uk.co.deloittedigital.dropwizard:dropwizard-hikaricp:1.0.0'
In your service's initialize
method, add the bundle:
bootstrap.addBundle(new HikariBundle());
This bundle should be registered before other bundles that use it - e.g. before the Flyway bundle.
Your service's configuration class should implement
uk.co.deloittedigital.dropwizard.hikari.config.HikariConfigurationProvider
. See the
Hikari documentation for the available configuration
settings and their behaviour.
See LICENSE.
Copyright (c) 2015, 2016 Deloitte MCS Ltd.
See AUTHORS for contributors.