File tree Expand file tree Collapse file tree
src/main/java/eu/openanalytics/containerproxy/stat/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,6 +68,32 @@ public JDBCCollector(Environment environment) {
6868 ds .setJdbcUrl (baseURL );
6969 ds .setUsername (username );
7070 ds .setPassword (password );
71+
72+ Long connectionTimeout = environment .getProperty ("proxy.usage-stats-hikari.connection-timeout" , Long .class );
73+ if (connectionTimeout != null ) {
74+ ds .setConnectionTimeout (connectionTimeout );
75+ }
76+
77+ Long idleTimeout = environment .getProperty ("proxy.usage-stats-hikari.idle-timeout" , Long .class );
78+ if (idleTimeout != null ) {
79+ ds .setIdleTimeout (idleTimeout );
80+ }
81+
82+ Long maxLifetime = environment .getProperty ("proxy.usage-stats-hikari.max-lifetime" , Long .class );
83+ if (maxLifetime != null ) {
84+ ds .setMaxLifetime (maxLifetime );
85+ }
86+
87+ Integer minimumIdle = environment .getProperty ("proxy.usage-stats-hikari.minimum-idle" , Integer .class );
88+ if (minimumIdle != null ) {
89+ ds .setMinimumIdle (minimumIdle );
90+ }
91+
92+ Integer maximumPoolSize = environment .getProperty ("proxy.usage-stats-hikari.maximum-pool-size" , Integer .class );
93+ if (maximumPoolSize != null ) {
94+ ds .setMaximumPoolSize (maximumPoolSize );
95+ }
96+
7197 }
7298
7399
You can’t perform that action at this time.
0 commit comments