net.leanix.dropkit.persistence.pool.ManagedHikariDataSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-dropkit-persistence Show documentation
Show all versions of leanix-dropkit-persistence Show documentation
Base functionality for persistence in leanIX dropwizard-based services
package net.leanix.dropkit.persistence.pool;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import io.dropwizard.db.ManagedDataSource;
public class ManagedHikariDataSource extends HikariDataSource implements ManagedDataSource {
public ManagedHikariDataSource(final HikariConfig config) {
super(config);
}
@Override
public void start() throws Exception {
// no op
}
@Override
public void stop() throws Exception {
close();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy