Skip to content

Commit

Permalink
Validate Maximum Pool Size
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Sep 20, 2024
1 parent 296d67f commit 8061f5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @author Yamel Senih
*
*/
public class DatabaseConfig {
public class BackendDatabaseConfig {
public static final String CONFIG_DB_IDLE_TIMEOUT = "DB|CONFIG_DB_IDLE_TIMEOUT";
public static final String CONFIG_DB_MINIMUM_IDLE = "DB|CONFIG_DB_MINIMUM_IDLE";
public static final String CONFIG_DB_MAXIMUM_POOL_SIZE = "DB|CONFIG_DB_MAXIMUM_POOL_SIZE";
Expand Down Expand Up @@ -55,7 +55,7 @@ public static void setMinimumIdle(int value) {
}

public static void setMaximumPoolSize(int value) {
if(value >= 0) {
if(value > 0) {
Ini.setProperty(CONFIG_DB_MAXIMUM_POOL_SIZE, String.valueOf(value));
}
}
Expand Down

0 comments on commit 8061f5a

Please sign in to comment.