Skip to content

Commit 04e252c

Browse files
committed
chore(cloudsql): update lazy refresh comments
1 parent 2f25c38 commit 04e252c

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

cloud-sql/mysql/servlet/src/main/java/com/example/cloudsql/ConnectorConnectionPoolFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ public static DataSource createConnectionPool() {
7373
config.addDataSourceProperty("ipTypes", "PUBLIC,PRIVATE");
7474
// [START cloud_sql_mysql_servlet_connect_unix]
7575

76-
// setting the refresh strategy to LAZY
77-
// to refresh the tokens when they are needed, rather than on a regular interval
78-
// this is recommended for serverless environments to
76+
// Setting cloudSqlRefreshStrategy to lazy
77+
// to refresh the tokens when they are needed, rather than on a scheduled interval.
78+
// This is recommended for serverless environments to
7979
// avoid background refreshes from throttling CPU.
8080
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");
8181

cloud-sql/mysql/servlet/src/main/java/com/example/cloudsql/ConnectorIamAuthnConnectionPoolFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public static DataSource createConnectionPool() {
6060
// The Java Connector will handle SSL so it is unneccesary to enable it at the driver level.
6161
config.addDataSourceProperty("sslmode", "disable");
6262

63-
// setting the refresh strategy to LAZY
64-
// to refresh the tokens when they are needed, rather than on a regular interval
65-
// this is recommended for serverless environments to
63+
// Setting cloudSqlRefreshStrategy to lazy
64+
// to refresh the tokens when they are needed, rather than on a scheduled interval.
65+
// This is recommended for serverless environments to
6666
// avoid background refreshes from throttling CPU.
6767
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");
6868

cloud-sql/postgres/servlet/src/main/java/com/example/cloudsql/ConnectorConnectionPoolFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public static DataSource createConnectionPool() {
7272
config.addDataSourceProperty("ipTypes", "PUBLIC,PRIVATE");
7373
// [START cloud_sql_postgres_servlet_connect_unix]
7474

75-
// setting the refresh strategy to LAZY
76-
// to refresh the tokens when they are needed, rather than on a regular interval
77-
// this is recommended for serverless environments to
75+
// Setting cloudSqlRefreshStrategy to lazy
76+
// to refresh the tokens when they are needed, rather than on a scheduled interval.
77+
// This is recommended for serverless environments to
7878
// avoid background refreshes from throttling CPU.
7979
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");
8080

cloud-sql/postgres/servlet/src/main/java/com/example/cloudsql/ConnectorIamAuthnConnectionPoolFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public static DataSource createConnectionPool() {
6161
// The Java Connector will handle SSL so it is unneccesary to enable it at the driver level.
6262
config.addDataSourceProperty("sslmode", "disable");
6363

64-
// setting the refresh strategy to LAZY
65-
// to refresh the tokens when they are needed, rather than on a regular interval
66-
// this is recommended for serverless environments to
64+
// Setting cloudSqlRefreshStrategy to lazy
65+
// to refresh the tokens when they are needed, rather than on a scheduled interval.
66+
// This is recommended for serverless environments to
6767
// avoid background refreshes from throttling CPU.
6868
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");
6969

cloud-sql/sqlserver/servlet/src/main/java/com/example/cloudsql/ConnectorConnectionPoolFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public static DataSource createConnectionPool() {
6161
// at the driver level.
6262
config.addDataSourceProperty("encrypt", "false");
6363

64-
// setting the refresh strategy to LAZY
65-
// to refresh the tokens when they are needed, rather than on a regular interval
66-
// this is recommended for serverless environments to
64+
// Setting cloudSqlRefreshStrategy to lazy
65+
// to refresh the tokens when they are needed, rather than on a scheduled interval.
66+
// This is recommended for serverless environments to
6767
// avoid background refreshes from throttling CPU.
6868
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");
6969

0 commit comments

Comments
 (0)