/** * Sets the maximum time a client is allowed to wait before a connection. If * a connection can not be obtained within the limit, a {@link * SqlTimeoutException} is thrown. */ @Config("db.connections.wait") public T setMaxConnectionWait(Duration maxConnectionWait) { this.maxConnectionWait = maxConnectionWait; return self(); }
/** * Sets the maximum time a client is allowed to wait before a connection. If * a connection can not be obtained within the limit, a {@link * SqlTimeoutException} is thrown. */ @Config("db.connections.wait") public T setMaxConnectionWait(Duration maxConnectionWait) { this.maxConnectionWait = maxConnectionWait; return self(); }
/** * Sets the maximum number of concurrent connections allowed by the data * source. The data source will perform a best effort cap on the number of * connections, but in some scenarios there may be slightly more connections * than the current cap. When the cap is lowered the extra connections will * be pruned as they are closed. */ @Config("db.connections.max") public T setMaxConnections(int maxConnections) { this.maxConnections = maxConnections; return self(); }
/** * Sets the maximum number of concurrent connections allowed by the data * source. The data source will perform a best effort cap on the number of * connections, but in some scenarios there may be slightly more connections * than the current cap. When the cap is lowered the extra connections will * be pruned as they are closed. */ @Config("db.connections.max") public T setMaxConnections(int maxConnections) { this.maxConnections = maxConnections; return self(); }