File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
ebean-datasource-api/src/main/java/io/ebean/datasource Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -474,6 +474,8 @@ default DataSourceBuilder leakTimeMinutes(int leakTimeMinutes) {
474474
475475 /**
476476 * Set the size of the PreparedStatement cache (per connection).
477+ * <p>
478+ * Defaults to 100.
477479 */
478480 default DataSourceBuilder pstmtCacheSize (int pstmtCacheSize ) {
479481 return setPstmtCacheSize (pstmtCacheSize );
@@ -501,6 +503,8 @@ default DataSourceBuilder cstmtCacheSize(int cstmtCacheSize) {
501503 /**
502504 * Set the time in millis to wait for a connection before timing out once the
503505 * pool has reached its maximum size.
506+ * <p>
507+ * Defaults to 1000 millis (1 second).
504508 */
505509 default DataSourceBuilder waitTimeoutMillis (int waitTimeoutMillis ) {
506510 return setWaitTimeoutMillis (waitTimeoutMillis );
@@ -514,6 +518,8 @@ default DataSourceBuilder waitTimeoutMillis(int waitTimeoutMillis) {
514518
515519 /**
516520 * Set the maximum age a connection can be in minutes.
521+ * <p>
522+ * Defaults to unlimited age, no connections are trimmed based on age.
517523 */
518524 default DataSourceBuilder maxAgeMinutes (int maxAgeMinutes ) {
519525 return setMaxAgeMinutes (maxAgeMinutes );
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public class DataSourceConfig implements DataSourceBuilder.Settings {
7474 private int maxInactiveTimeSecs = 300 ;
7575 private int maxAgeMinutes = 0 ;
7676 private int trimPoolFreqSecs = 59 ;
77- private int pstmtCacheSize = 50 ;
77+ private int pstmtCacheSize = 100 ;
7878 private int cstmtCacheSize = 20 ;
7979 private int waitTimeoutMillis = 1000 ;
8080 private String poolListener ;
You can’t perform that action at this time.
0 commit comments