Skip to content

Commit 5867c5b

Browse files
authored
---
yaml --- r: 18631 b: refs/heads/autosynth-monitoring c: 4298f15 h: refs/heads/master i: 18629: fae021c 18627: 2a0e716 18623: 8f7f1a4
1 parent cc89f78 commit 5867c5b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

  • branches/autosynth-monitoring/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
@@ -114,7 +114,7 @@ refs/tags/v0.66.0: ed6a3f57cbdaa20339a1995f7d7d53b172a5b8ef
114114
refs/tags/v0.67.0: 30b56f02092efc6f3c3667650ea8b8825003e0b7
115115
refs/heads/autosynth-compute: afe19e1678334117f3daf13b968b667857f7c8ca
116116
refs/heads/autosynth-container: f6384095f50b31bfc8208542a49181e158d3681c
117-
refs/heads/autosynth-monitoring: b05fadc68b22f58a101285280adebca618192d48
117+
refs/heads/autosynth-monitoring: 4298f15d05fc1d0cc3590240d858b2385dad2e1e
118118
refs/heads/autosynth-pubsub: fd363d13793a853214eb8193c922b28c54e7a6b3
119119
refs/heads/autosynth-video-intelligence: e44c9746407fe00fac42e1bb10ac50f493dd37b0
120120
refs/heads/autosynth-vision: b8e47d76578b5f150ef530072ea7e485e2b02ca0

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