Skip to content

Commit e2c14d8

Browse files
authored
---
yaml --- r: 19699 b: refs/heads/autosynth-firestore c: 4298f15 h: refs/heads/master i: 19697: 42964b8 19695: 645fec6
1 parent 5250bff commit e2c14d8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

  • branches/autosynth-firestore/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
@@ -131,7 +131,7 @@ refs/heads/autosynth-containeranalysis: 0f377286f60df2b6fd37c183bf170c68dc014cfb
131131
refs/heads/autosynth-datastore: 9acd400b484d6691a080c9152a331d88d24fefc1
132132
refs/heads/autosynth-dialogflow: 7dbc2c1ea714328ccfa4f33645045f017ff080e7
133133
refs/heads/autosynth-errorreporting: 1101a04e8be074802c35332d5fcf8297f61cae32
134-
refs/heads/autosynth-firestore: b05fadc68b22f58a101285280adebca618192d48
134+
refs/heads/autosynth-firestore: 4298f15d05fc1d0cc3590240d858b2385dad2e1e
135135
refs/heads/autosynth-iot: f16fc4ba85bbb37eacecb64a2a7336f685813f6c
136136
refs/heads/autosynth-kms: 4fff8f3cf6c830f7706ac4ef272f036bb87fbaf8
137137
refs/heads/autosynth-language: 6262e2eb76944f01972c887b3e684aaf65ec999a

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