Package org.apache.storm.jdbc.common
Class HikariCPConnectionProvider
java.lang.Object
org.apache.storm.jdbc.common.HikariCPConnectionProvider
- All Implemented Interfaces:
Serializable
,ConnectionProvider
- See Also:
-
Constructor Details
-
HikariCPConnectionProvider
-
-
Method Details
-
prepare
public void prepare()Description copied from interface:ConnectionProvider
method must be idempotent.- Specified by:
prepare
in interfaceConnectionProvider
-
getConnection
Description copied from interface:ConnectionProvider
Get connection.- Specified by:
getConnection
in interfaceConnectionProvider
- Returns:
- a DB connection over which the queries can be executed.
-
cleanup
public void cleanup()Description copied from interface:ConnectionProvider
called once when the system is shutting down, should be idempotent.- Specified by:
cleanup
in interfaceConnectionProvider
-