Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
Modifier and Type | Method and Description |
---|---|
static SpannerOptions.Builder |
SpannerOptions.newBuilder() |
SpannerOptions.Builder |
SpannerOptions.Builder.setChannelConfigurator(com.google.api.core.ApiFunction<ManagedChannelBuilder,ManagedChannelBuilder> channelConfigurator)
Sets an
ApiFunction that will be used to configure the transport channel. |
SpannerOptions.Builder |
SpannerOptions.Builder.setChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider)
Sets the
ChannelProvider . |
SpannerOptions.Builder |
SpannerOptions.Builder.setInterceptorProvider(com.google.api.gax.grpc.GrpcInterceptorProvider interceptorProvider)
Sets the
GrpcInterceptorProvider . |
SpannerOptions.Builder |
SpannerOptions.Builder.setNumChannels(int numChannels)
Sets the number of gRPC channels to use.
|
SpannerOptions.Builder |
SpannerOptions.Builder.setPartitionedDmlTimeout(org.threeten.bp.Duration timeout)
Sets a timeout specifically for Partitioned DML statements executed through
DatabaseClient.executePartitionedUpdate(Statement) . |
SpannerOptions.Builder |
SpannerOptions.Builder.setPrefetchChunks(int prefetchChunks)
Specifying this will allow the client to prefetch up to
prefetchChunks PartialResultSet chunks for each read and query. |
SpannerOptions.Builder |
SpannerOptions.Builder.setRetrySettings(com.google.api.gax.retrying.RetrySettings retrySettings)
SpannerOptions.Builder does not support global retry settings, as it creates three
different gRPC clients: Spanner , DatabaseAdminClient and InstanceAdminClient . |
SpannerOptions.Builder |
SpannerOptions.Builder.setSessionLabels(Map<String,String> sessionLabels)
Sets the labels to add to all Sessions created in this client.
|
SpannerOptions.Builder |
SpannerOptions.Builder.setSessionPoolOption(SessionPoolOptions sessionPoolOptions)
Sets the options for managing the session pool.
|
SpannerOptions.Builder |
SpannerOptions.Builder.setTransportOptions(com.google.cloud.TransportOptions transportOptions) |
SpannerOptions.Builder |
SpannerOptions.toBuilder() |
Copyright © 2019 Google LLC. All rights reserved.