public class HikariWrapper extends Object implements HelperDataSource
EMPTY| Constructor and Description |
|---|
HikariWrapper(DatabaseCredentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Gets a connection from the datasource.
|
com.zaxxer.hikari.HikariDataSource |
getHikari()
Gets the Hikari instance backing the datasource
|
boolean |
terminate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitusingHikaribindWith, close, hasTerminated, ofpublic 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 boolean terminate()
terminate in interface TerminableCopyright © 2017. All rights reserved.