public class SpannerOptions extends ServiceOptions<Spanner,SpannerOptions>
Modifier and Type | Class and Description |
---|---|
static class |
SpannerOptions.Builder
Builder for
SpannerOptions instances. |
CREDENTIAL_ENV_NAME, credentials
baseEquals, baseHashCode, defaultRetrySettings, getAppEngineAppId, getAppEngineProjectId, getAppEngineProjectIdFromAppId, getApplicationName, getClock, getCredentials, getDefaultProject, getDefaultProjectId, getDefaultRetrySettings, getFromServiceLoader, getGoogApiClientLibName, getGoogleCloudProjectId, getHost, getLibraryName, getLibraryVersion, getMergedHeaderProvider, getNoRetrySettings, getProjectId, getRetrySettings, getRpc, getScopedCredentials, getService, getServiceAccountProjectId, getTransportOptions, getUserAgent, newInstance, projectIdRequired
public static SpannerOptions getDefaultInstance()
SpannerOptions
.public static SpannerOptions.Builder newBuilder()
public com.google.api.gax.rpc.TransportChannelProvider getChannelProvider()
public com.google.api.core.ApiFunction<ManagedChannelBuilder,ManagedChannelBuilder> getChannelConfigurator()
public com.google.api.gax.grpc.GrpcInterceptorProvider getInterceptorProvider()
public int getNumChannels()
public SessionPoolOptions getSessionPoolOptions()
public SpannerStubSettings getSpannerStubSettings()
public InstanceAdminStubSettings getInstanceAdminStubSettings()
public DatabaseAdminStubSettings getDatabaseAdminStubSettings()
public org.threeten.bp.Duration getPartitionedDmlTimeout()
public int getPrefetchChunks()
public static GrpcTransportOptions getDefaultGrpcTransportOptions()
protected String getDefaultHost()
getDefaultHost
in class ServiceOptions<Spanner,SpannerOptions>
public Set<String> getScopes()
getScopes
in class ServiceOptions<Spanner,SpannerOptions>
protected SpannerRpc getSpannerRpcV1()
protected boolean shouldRefreshService(Spanner cachedService)
shouldRefreshService
in class ServiceOptions<Spanner,SpannerOptions>
cachedService
- The currently cached service objecttrue
if the cached Spanner service instance is null
or
closed. This will cause the method ServiceOptions.getService()
to create a new SpannerRpc
instance when one is requested.protected boolean shouldRefreshRpc(ServiceRpc cachedRpc)
shouldRefreshRpc
in class ServiceOptions<Spanner,SpannerOptions>
cachedRpc
- The currently cached service objecttrue
if the cached ServiceRpc
instance is null
or
closed. This will cause the method ServiceOptions.getRpc()
to create a new Spanner
instance when one is requested.public SpannerOptions.Builder toBuilder()
toBuilder
in class ServiceOptions<Spanner,SpannerOptions>
public String getEndpoint()
Copyright © 2019 Google LLC. All rights reserved.