Uses of Class
com.google.cloud.spanner.SpannerOptions.Builder
Packages that use SpannerOptions.Builder
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
-
Uses of SpannerOptions.Builder in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return SpannerOptions.BuilderModifier and TypeMethodDescriptionSpannerOptions.Builder.disableAdministrativeRequestRetries()Disables automatic retries of administrative requests that fail if the https://cloud.google.com/spanner/quotas#administrative_limits have been exceeded.SpannerOptions.Builder.disableDirectPath()SpannerOptions.Builder.disableGrpcGcpExtension()Disables gRPC-GCP extension.SpannerOptions.Builder.disableLeaderAwareRouting()Disable leader aware routing.SpannerOptions.Builder.enableGrpcGcpExtension()Enables gRPC-GCP extension with the default settings.SpannerOptions.Builder.enableGrpcGcpExtension(com.google.cloud.grpc.GcpManagedChannelOptions options) Enables gRPC-GCP extension and uses provided options for configuration.SpannerOptions.Builder.enableLeaderAwareRouting()Enable leader aware routing.static SpannerOptions.BuilderSpannerOptions.newBuilder()SpannerOptions.Builder.setAsyncExecutorProvider(SpannerOptions.CloseableExecutorProvider provider) Sets theExecutorProviderto use for high-level async calls that need an executor, such as fetching results for anAsyncResultSet.SpannerOptions.Builder.setAutoThrottleAdministrativeRequests()Instructs the client library to automatically throttle the number of administrative requests if the rate of administrative requests generated by thisSpannerinstance will exceed the administrative limits Cloud Spanner.SpannerOptions.Builder.setCallCredentialsProvider(SpannerOptions.CallCredentialsProvider callCredentialsProvider) Sets aSpannerOptions.CallCredentialsProviderthat can deliverCallCredentialsto use on a per-gRPC basis.SpannerOptions.Builder.setChannelConfigurator(com.google.api.core.ApiFunction<io.grpc.ManagedChannelBuilder, io.grpc.ManagedChannelBuilder> channelConfigurator) Sets anApiFunctionthat will be used to configure the transport channel.SpannerOptions.Builder.setChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider) Sets theChannelProvider.SpannerOptions.Builder.setClientLibToken(String clientLibToken) SpannerOptions.Builder.setCompressorName(String compressorName) Sets the compression to use for all gRPC calls.SpannerOptions.Builder.setDatabaseRole(String databaseRole) Sets the database role that should be used for connections that are created by this instance.SpannerOptions.Builder.setDecodeMode(DecodeMode decodeMode) Specifies how values that are returned from a query should be decoded and converted from protobuf values into plain Java objects.SpannerOptions.Builder.setDefaultQueryOptions(DatabaseId database, ExecuteSqlRequest.QueryOptions defaultQueryOptions) Sets the defaultExecuteSqlRequest.QueryOptionsthat will be used for all queries on the specified database.SpannerOptions.Builder.setDirectedReadOptions(DirectedReadOptions directedReadOptions) Sets theOptions.DirectedReadOptionthat specify which replicas or regions should be used for non-transactional reads or queries.SpannerOptions.Builder.setEmulatorHost(String emulatorHost) Sets the host of an emulator to use.SpannerOptions.Builder.setEnableApiTracing(boolean enableApiTracing) Creates and sets anApiTracerfor the RPCs that are executed by this client.SpannerOptions.Builder.setEnableEndToEndTracing(boolean enableEndToEndTracing) Sets whether to enable end to end tracing.SpannerOptions.Builder.setEnableExtendedTracing(boolean enableExtendedTracing) Sets whether to enable extended OpenTelemetry tracing.SpannerOptions.Builder.setInterceptorProvider(com.google.api.gax.grpc.GrpcInterceptorProvider interceptorProvider) Sets theGrpcInterceptorProvider.SpannerOptions.Builder.setNumChannels(int numChannels) Sets the number of gRPC channels to use.SpannerOptions.Builder.setOpenTelemetry(io.opentelemetry.api.OpenTelemetry openTelemetry) Sets OpenTelemetry object to be used for Spanner Metrics and Traces.SpannerOptions.Builder.setPartitionedDmlTimeout(org.threeten.bp.Duration timeout) Sets a timeout specifically for Partitioned DML statements executed throughDatabaseClient.executePartitionedUpdate(Statement, UpdateOption...).SpannerOptions.Builder.setPrefetchChunks(int prefetchChunks) Specifying this will allow the client to prefetch up toprefetchChunksPartialResultSetchunks for each read and query.SpannerOptions.Builder.setRetrySettings(com.google.api.gax.retrying.RetrySettings retrySettings) SpannerOptions.Builderdoes not support global retry settings, as it creates three different gRPC clients:Spanner,DatabaseAdminClientandInstanceAdminClient.SpannerOptions.Builder.setSessionLabels(Map<String, String> sessionLabels) Sets the labels to add to all Sessions created in this client.SpannerOptions.Builder.setSessionPoolOption(SessionPoolOptions sessionPoolOptions) Sets the options for managing the session pool.SpannerOptions.Builder.setTrackTransactionStarter()Instructs the client library to track the first request of each read/write transaction.SpannerOptions.Builder.setTransportOptions(com.google.cloud.TransportOptions transportOptions) protected SpannerOptions.BuilderSpannerOptions.Builder.setUseVirtualThreads(boolean useVirtualThreads) Enables/disables the use of virtual threads for the gRPC executor.SpannerOptions.toBuilder()Constructors in com.google.cloud.spanner with parameters of type SpannerOptions.Builder