Skip to content

Dropwizard bundle for Hikari connection pool support

License

Notifications You must be signed in to change notification settings

DeloitteDigitalUK/dropwizard-hikaricp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dropwizard HikariCP bundle

Circle CI

Overview

This Dropwizard bundle adds support for the excellent HikariCP database connection pool library. This includes metrics and healthchecks support.

Obtaining the library

Maven

<dependency>
    <groupId>uk.co.deloittedigital.dropwizard</groupId>
    <artifactId>dropwizard-hikaricp</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle

compile 'uk.co.deloittedigital.dropwizard:dropwizard-hikaricp:1.0.0'

Usage

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.

License

See LICENSE.

Copyright

Copyright (c) 2015, 2016 Deloitte MCS Ltd.

See AUTHORS for contributors.

About

Dropwizard bundle for Hikari connection pool support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages