Skip to content

Commit

Permalink
#4685 Spanner now extends AutoCloseable (#4687)
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite authored Mar 18, 2019
1 parent b05fadc commit 4298f15
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* longer needed. Failure to do so may result in leaking session resources and exhausting session
* quota.
*/
public interface Spanner extends Service<SpannerOptions> {
public interface Spanner extends Service<SpannerOptions>, AutoCloseable {
/** Returns a {@code DatabaseAdminClient} to do admin operations on Cloud Spanner databases. */
/*
* <!--SNIPPET get_dbadmin_client-->
Expand Down Expand Up @@ -103,5 +103,6 @@ public interface Spanner extends Service<SpannerOptions> {
* a hard limit on number of sessions in Cloud Spanner and not calling this method can lead to
* unused sessions piling up on the backend.
*/
@Override
void close();
}

0 comments on commit 4298f15

Please sign in to comment.