Class SpannerOptions

    • Method Detail

      • getDefaultInstance

        public static SpannerOptions getDefaultInstance()
        Returns default instance of SpannerOptions.
      • useEnvironment

        public static void useEnvironment​(SpannerOptions.SpannerEnvironment environment)
        Sets the environment to use to read configuration. The default will read configuration from environment variables.
      • useDefaultEnvironment

        public static void useDefaultEnvironment()
        Sets the environment to use to read configuration to the default environment. This will read configuration from environment variables.
      • getDefaultProject

        protected String getDefaultProject()
        Overrides:
        getDefaultProject in class com.google.cloud.ServiceOptions<Spanner,​SpannerOptions>
      • getChannelProvider

        public com.google.api.gax.rpc.TransportChannelProvider getChannelProvider()
      • getChannelConfigurator

        public com.google.api.core.ApiFunction<io.grpc.ManagedChannelBuilder,​io.grpc.ManagedChannelBuilder> getChannelConfigurator()
      • getInterceptorProvider

        public com.google.api.gax.grpc.GrpcInterceptorProvider getInterceptorProvider()
      • getNumChannels

        public int getNumChannels()
      • getTransportChannelExecutorThreadNameFormat

        public String getTransportChannelExecutorThreadNameFormat()
      • getPartitionedDmlTimeout

        public org.threeten.bp.Duration getPartitionedDmlTimeout()
      • isGrpcGcpExtensionEnabled

        public boolean isGrpcGcpExtensionEnabled()
      • getGrpcGcpOptions

        public com.google.cloud.grpc.GcpManagedChannelOptions getGrpcGcpOptions()
      • isAutoThrottleAdministrativeRequests

        public boolean isAutoThrottleAdministrativeRequests()
      • getRetryAdministrativeRequestsSettings

        public com.google.api.gax.retrying.RetrySettings getRetryAdministrativeRequestsSettings()
      • isTrackTransactionStarter

        public boolean isTrackTransactionStarter()
      • getCompressorName

        public String getCompressorName()
      • getPrefetchChunks

        public int getPrefetchChunks()
      • getDefaultGrpcTransportOptions

        public static com.google.cloud.grpc.GrpcTransportOptions getDefaultGrpcTransportOptions()
      • getDefaultHost

        protected String getDefaultHost()
        Overrides:
        getDefaultHost in class com.google.cloud.ServiceOptions<Spanner,​SpannerOptions>
      • getSpannerRpcV1

        protected SpannerRpc getSpannerRpcV1()
      • shouldRefreshService

        protected boolean shouldRefreshService​(Spanner cachedService)
        Overrides:
        shouldRefreshService in class com.google.cloud.ServiceOptions<Spanner,​SpannerOptions>
        Returns:
        true 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.
      • shouldRefreshRpc

        protected boolean shouldRefreshRpc​(com.google.cloud.ServiceRpc cachedRpc)
        Overrides:
        shouldRefreshRpc in class com.google.cloud.ServiceOptions<Spanner,​SpannerOptions>
        Returns:
        true 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.
      • getEndpoint

        public String getEndpoint()