public class SpannerAccessor
extends java.lang.Object
implements java.lang.AutoCloseable
DatabaseClient
and Spanner
instances.Modifier and Type | Method and Description |
---|---|
void |
close() |
BatchClient |
getBatchClient() |
DatabaseAdminClient |
getDatabaseAdminClient() |
DatabaseClient |
getDatabaseClient() |
static SpannerAccessor |
getOrCreate(SpannerConfig spannerConfig) |
public static SpannerAccessor getOrCreate(SpannerConfig spannerConfig)
public DatabaseClient getDatabaseClient()
public BatchClient getBatchClient()
public DatabaseAdminClient getDatabaseAdminClient()
public void close()
close
in interface java.lang.AutoCloseable