in alloydb-jdbc-connector/src/main/java/com/google/cloud/alloydb/Refresher.java [153:175]
void forceRefresh() {
synchronized (connectionInfoGuard) {
if (closed) {
throw new IllegalStateException("Connection closed");
}
// Don't force a refresh until the current refresh operation
// has produced a successful refresh.
if (refreshRunning) {
return;
}
if (next != null) {
next.cancel(false);
}
logger.debug(
String.format(
"[%s] Force Refresh: the next refresh operation was cancelled."
+ " Scheduling new refresh operation immediately.",
name));
next = this.startRefreshAttempt();
}
}