in alloydb-jdbc-connector/src/main/java/com/google/cloud/alloydb/InternalConnectorRegistry.java [151:170]
private void shutdownConnectors() {
this.unnamedConnectors.forEach(
(key, c) -> {
try {
c.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
});
this.unnamedConnectors.clear();
this.namedConnectors.forEach(
(key, c) -> {
try {
c.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
});
this.namedConnectors.clear();
}