We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b05fadc commit 4298f15Copy full SHA for 4298f15
1 file changed
google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Spanner.java
@@ -24,7 +24,7 @@
24
* longer needed. Failure to do so may result in leaking session resources and exhausting session
25
* quota.
26
*/
27
-public interface Spanner extends Service<SpannerOptions> {
+public interface Spanner extends Service<SpannerOptions>, AutoCloseable {
28
/** Returns a {@code DatabaseAdminClient} to do admin operations on Cloud Spanner databases. */
29
/*
30
* <!--SNIPPET get_dbadmin_client-->
@@ -103,5 +103,6 @@ public interface Spanner extends Service<SpannerOptions> {
103
* a hard limit on number of sessions in Cloud Spanner and not calling this method can lead to
104
* unused sessions piling up on the backend.
105
106
+ @Override
107
void close();
108
}
0 commit comments