public class HikariWrapper extends Object implements HelperDataSource
EMPTY| Constructor and Description |
|---|
HikariWrapper(DatabaseCredentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Connection |
getConnection()
Gets a connection from the datasource.
|
com.zaxxer.hikari.HikariDataSource |
getHikari()
Gets the Hikari instance backing the datasource
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitusingHikaribindWith, closeAndReportException, closeSilently, isClosedpublic HikariWrapper(@Nonnull DatabaseCredentials credentials)
@Nonnull public com.zaxxer.hikari.HikariDataSource getHikari()
HelperDataSourcegetHikari in interface HelperDataSource@Nonnull public Connection getConnection() throws SQLException
HelperDataSourceThe connection should be returned once it has been used.
getConnection in interface HelperDataSourceSQLExceptionpublic void close()
close in interface AutoCloseableclose in interface TerminableCopyright © 2018. All rights reserved.