Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ default DataSourceBuilder leakTimeMinutes(int leakTimeMinutes) {

/**
* Set the size of the PreparedStatement cache (per connection).
* <p>
* Defaults to 100.
*/
default DataSourceBuilder pstmtCacheSize(int pstmtCacheSize) {
return setPstmtCacheSize(pstmtCacheSize);
Expand Down Expand Up @@ -501,6 +503,8 @@ default DataSourceBuilder cstmtCacheSize(int cstmtCacheSize) {
/**
* Set the time in millis to wait for a connection before timing out once the
* pool has reached its maximum size.
* <p>
* Defaults to 1000 millis (1 second).
*/
default DataSourceBuilder waitTimeoutMillis(int waitTimeoutMillis) {
return setWaitTimeoutMillis(waitTimeoutMillis);
Expand All @@ -514,6 +518,8 @@ default DataSourceBuilder waitTimeoutMillis(int waitTimeoutMillis) {

/**
* Set the maximum age a connection can be in minutes.
* <p>
* Defaults to unlimited age, no connections are trimmed based on age.
*/
default DataSourceBuilder maxAgeMinutes(int maxAgeMinutes) {
return setMaxAgeMinutes(maxAgeMinutes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class DataSourceConfig implements DataSourceBuilder.Settings {
private int maxInactiveTimeSecs = 300;
private int maxAgeMinutes = 0;
private int trimPoolFreqSecs = 59;
private int pstmtCacheSize = 50;
private int pstmtCacheSize = 100;
private int cstmtCacheSize = 20;
private int waitTimeoutMillis = 1000;
private String poolListener;
Expand Down
Loading