Skip to content

Commit 047b902

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

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

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

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

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ 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 cloudSqlRefreshStrategy to lazy
64-
// to refresh the tokens when they are needed, rather than on a scheduled interval.
63+
// cloudSqlRefreshStrategy set to "lazy" is used to perform a
64+
// refresh when needed, rather than on a scheduled interval.
6565
// This is recommended for serverless environments to
6666
// avoid background refreshes from throttling CPU.
6767
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");

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

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

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ 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 cloudSqlRefreshStrategy to lazy
65-
// to refresh the tokens when they are needed, rather than on a scheduled interval.
64+
// cloudSqlRefreshStrategy set to "lazy" is used to perform a
65+
// refresh when needed, rather than on a scheduled interval.
6666
// This is recommended for serverless environments to
6767
// avoid background refreshes from throttling CPU.
6868
config.addDataSourceProperty("cloudSqlRefreshStrategy", "lazy");

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

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

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

0 commit comments

Comments
 (0)