Skip to content

Commit ba1cf5b

Browse files
authored
---
yaml --- r: 18519 b: refs/heads/autosynth-compute c: 4298f15 h: refs/heads/master i: 18517: 2a772c5 18515: 2aa3bbc 18511: 159cd72
1 parent 9ffd59a commit ba1cf5b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

  • branches/autosynth-compute/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
@@ -112,7 +112,7 @@ refs/tags/v0.64.0: 456e8fbd129deced3ca025f239a2d8a82bde1d0a
112112
refs/tags/v0.65.0: 10939381ffe0b8da32db4fe3087c86e3aa7f3e55
113113
refs/tags/v0.66.0: ed6a3f57cbdaa20339a1995f7d7d53b172a5b8ef
114114
refs/tags/v0.67.0: 30b56f02092efc6f3c3667650ea8b8825003e0b7
115-
refs/heads/autosynth-compute: b05fadc68b22f58a101285280adebca618192d48
115+
refs/heads/autosynth-compute: 4298f15d05fc1d0cc3590240d858b2385dad2e1e
116116
refs/heads/autosynth-container: f6384095f50b31bfc8208542a49181e158d3681c
117117
refs/heads/autosynth-monitoring: e67db7395a868e5f6ecc3476eb4a91c47abd4234
118118
refs/heads/autosynth-pubsub: fd363d13793a853214eb8193c922b28c54e7a6b3

branches/autosynth-compute/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)