Skip to content

Commit 421211d

Browse files
authored
---
yaml --- r: 22677 b: refs/heads/autosynth-bigquerydatatransfer c: 4298f15 h: refs/heads/master i: 22675: 76d0928
1 parent 3e10c76 commit 421211d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

  • branches/autosynth-bigquerydatatransfer/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
@@ -122,7 +122,7 @@ refs/tags/v0.68.0: 9cc799fcf68c82ab431d425fefa58ef615ce8e5b
122122
refs/tags/v0.69.0: 78f67a29e8b9c46ba01de566a2eae0fd1c03edea
123123
refs/heads/autosynth-asset: 7d535c3023644faa89492d4a553d8c403e073fa7
124124
refs/heads/autosynth-automl: 7fcabb1e54ca9ded6bec10f41590d29ece3a6367
125-
refs/heads/autosynth-bigquerydatatransfer: b05fadc68b22f58a101285280adebca618192d48
125+
refs/heads/autosynth-bigquerydatatransfer: 4298f15d05fc1d0cc3590240d858b2385dad2e1e
126126
refs/heads/autosynth-bigquerystorage: a75c34ed7a11741669121be69a7021a00f1133ce
127127
refs/heads/autosynth-bigtable: 45891a7178142c84a16d6a0b792f8ecb950a3159
128128
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca

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