public class SpannerOptions extends ServiceOptions<Spanner,SpannerOptions>
| Modifier and Type | Class and Description |
|---|---|
static class |
SpannerOptions.Builder
Builder for
SpannerOptions instances. |
static interface |
SpannerOptions.RpcChannelFactory
Interface for gRPC channel creation.
|
CREDENTIAL_ENV_NAME, credentials| Modifier and Type | Method and Description |
|---|---|
static GrpcTransportOptions |
getDefaultGrpcTransportOptions() |
protected String |
getDefaultHost() |
static SpannerOptions |
getDefaultInstance()
Returns default instance of
SpannerOptions. |
static SpannerOptions.RpcChannelFactory |
getDefaultRpcChannelFactory()
Returns the default RPC channel factory used when none is specified.
|
int |
getPrefetchChunks() |
List<io.grpc.ManagedChannel> |
getRpcChannels() |
Set<String> |
getScopes() |
SessionPoolOptions |
getSessionPoolOptions() |
protected SpannerRpc |
getSpannerRpcV1() |
static SpannerOptions.Builder |
newBuilder() |
SpannerOptions.Builder |
toBuilder() |
baseEquals, baseHashCode, defaultRetrySettings, getAppEngineAppId, getAppEngineProjectId, getAppEngineProjectIdFromAppId, getApplicationName, getClock, getCredentials, getDefaultProject, getDefaultProjectId, getDefaultRetrySettings, getFromServiceLoader, getGoogApiClientLibName, getGoogleCloudProjectId, getHost, getLibraryName, getLibraryVersion, getNoRetrySettings, getProjectId, getRetrySettings, getRpc, getScopedCredentials, getService, getServiceAccountProjectId, getTransportOptions, newInstance, projectIdRequiredpublic static SpannerOptions getDefaultInstance()
SpannerOptions.public static SpannerOptions.Builder newBuilder()
public List<io.grpc.ManagedChannel> getRpcChannels()
public SessionPoolOptions getSessionPoolOptions()
public int getPrefetchChunks()
public static GrpcTransportOptions getDefaultGrpcTransportOptions()
public static SpannerOptions.RpcChannelFactory getDefaultRpcChannelFactory()
protected String getDefaultHost()
getDefaultHost in class ServiceOptions<Spanner,SpannerOptions>public Set<String> getScopes()
getScopes in class ServiceOptions<Spanner,SpannerOptions>protected SpannerRpc getSpannerRpcV1()
public SpannerOptions.Builder toBuilder()
toBuilder in class ServiceOptions<Spanner,SpannerOptions>Copyright © 2017 Google. All rights reserved.