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