Skip to content

Commit cab7b05

Browse files
authored
---
yaml --- r: 23975 b: refs/heads/autosynth-kms c: 4298f15 h: refs/heads/master i: 23973: 6352311 23971: a440ad2 23967: 0479527
1 parent d53f313 commit cab7b05

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

  • branches/autosynth-kms/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ refs/heads/autosynth-dialogflow: cb1ceeb3ec1a132d3096fc88d44b930a52130e18
132132
refs/heads/autosynth-errorreporting: 3f176c20b55dfaaa8fc32f28d82b31784b93e636
133133
refs/heads/autosynth-firestore: d48d82caace227856b6cd85ac30ee474528733ea
134134
refs/heads/autosynth-iot: 4025d1804241e74d54950a324dc4f667aeaad4b3
135-
refs/heads/autosynth-kms: b05fadc68b22f58a101285280adebca618192d48
135+
refs/heads/autosynth-kms: 4298f15d05fc1d0cc3590240d858b2385dad2e1e
136136
refs/heads/autosynth-language: c3d990dd34d81e7e935041e7147fb9dd27f8a557
137137
refs/heads/autosynth-os-login: 092fdbed6d5317948f92b708e9f50dedd89fc666
138138
refs/heads/autosynth-redis: 9e1fe503973c7b4a9ba26afb1fcddc2a57ba795a

branches/autosynth-kms/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Spanner.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* longer needed. Failure to do so may result in leaking session resources and exhausting session
2525
* quota.
2626
*/
27-
public interface Spanner extends Service<SpannerOptions> {
27+
public interface Spanner extends Service<SpannerOptions>, AutoCloseable {
2828
/** Returns a {@code DatabaseAdminClient} to do admin operations on Cloud Spanner databases. */
2929
/*
3030
* <!--SNIPPET get_dbadmin_client-->
@@ -103,5 +103,6 @@ public interface Spanner extends Service<SpannerOptions> {
103103
* a hard limit on number of sessions in Cloud Spanner and not calling this method can lead to
104104
* unused sessions piling up on the backend.
105105
*/
106+
@Override
106107
void close();
107108
}

0 commit comments

Comments
 (0)