public interface Spanner extends Service<SpannerOptions>
Modifier and Type | Method and Description |
---|---|
com.google.api.core.ApiFuture<Void> |
closeAsync()
Closes all the clients associated with this instance and frees up all the resources.
|
DatabaseAdminClient |
getDatabaseAdminClient()
Returns a
DatabaseAdminClient to do admin operations on Cloud Spanner databases. |
DatabaseClient |
getDatabaseClient(DatabaseId db)
Returns a
DatabaseClient for the given database. |
InstanceAdminClient |
getInstanceAdminClient()
Returns an
InstanceAdminClient to do admin operations on Cloud Spanner instances. |
getOptions
DatabaseAdminClient getDatabaseAdminClient()
DatabaseAdminClient
to do admin operations on Cloud Spanner databases.InstanceAdminClient getInstanceAdminClient()
InstanceAdminClient
to do admin operations on Cloud Spanner instances.DatabaseClient getDatabaseClient(DatabaseId db)
DatabaseClient
for the given database. It uses a pool of sessions to talk to
the database.com.google.api.core.ApiFuture<Void> closeAsync()
Copyright © 2017 Google. All rights reserved.