Package org.apache.storm.jdbc.common
Interface ConnectionProvider
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
HikariCPConnectionProvider
Provides a database connection.
-
Method Details
-
prepare
void prepare()method must be idempotent. -
getConnection
Connection getConnection()Get connection.- Returns:
- a DB connection over which the queries can be executed.
-
cleanup
void cleanup()called once when the system is shutting down, should be idempotent.
-