Class EnhancedBigtableStubSettings
EnhancedBigtableStub.
Sane defaults are provided for most settings:
- The default service address (bigtable.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
The only required setting is the instance name.
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
BigtableDataSettings.Builder settingsBuilder = BigtableDataSettings.newBuilder()
.setProjectId("my-project-id")
.setInstanceId("my-instance-id")
.setAppProfileId("default");
settingsBuilder.readRowsSettings()
.setRetryableCodes(Code.DEADLINE_EXCEEDED, Code.UNAVAILABLE);
BigtableDataSettings settings = builder.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for BigtableDataSettings. -
Method Summary
Modifier and TypeMethodDescriptionReturns the object with the settings used for calls to MutateRows.Returns the call settings used for bulk read rows.com.google.api.gax.rpc.UnaryCallSettings<ConditionalRowMutation,Boolean> Returns the object with the settings used for calls to CheckAndMutateRow.static com.google.api.gax.core.GoogleCredentialsProvider.BuilderReturns a builder for the default credentials for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.BuilderReturns a builder for the default ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvidercom.google.api.gax.rpc.ServerStreamingCallSettings<String,Range.ByteStringRange> Returns the configured AppProfile to usebooleanGets if RetryInfo is enabled.booleanGets if routing cookie is enabled.Returns the target instance id.Deprecated.This field is ignored.Returns the project id of the target instance.booleanDeprecated.Channel refreshing is enabled by default and this method will be deprecated.com.google.api.gax.rpc.UnaryCallSettings<RowMutation,Void> Returns the object with the settings used for calls to MutateRow.Create a new builder.com.google.api.gax.rpc.ServerStreamingCallSettings<ReadChangeStreamQuery,ChangeStreamRecord> com.google.api.gax.rpc.UnaryCallSettings<ReadModifyWriteRow,Row> Returns the object with the settings used for calls to ReadModifyWriteRow.Returns the object with the settings used for point reads via ReadRows.Returns the object with the settings used for calls to ReadRows.Returns the object with the settings used for calls to SampleRowKeys.Returns a builder containing all the values of this settings class.toString()Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getServiceName, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain
-
Method Details
-
newBuilder
Create a new builder. -
getProjectId
Returns the project id of the target instance. -
getInstanceId
Returns the target instance id. -
getAppProfileId
Returns the configured AppProfile to use -
isRefreshingChannel
Deprecated.Channel refreshing is enabled by default and this method will be deprecated.Returns if channels will gracefully refresh connections to Cloud Bigtable service -
getPrimedTableIds
Deprecated.This field is ignored. IfisRefreshingChannel()is enabled, warm up requests will be sent to all table ids of the instance. -
getJwtAudienceMapping
-
getEnableRoutingCookie
@BetaApi("Routing cookie is not currently stable and may change in the future") public boolean getEnableRoutingCookie()Gets if routing cookie is enabled. If true, client will retry a request with extra metadata server sent back. -
getEnableRetryInfo
@BetaApi("RetryInfo is not currently stable and may change in the future") public boolean getEnableRetryInfo()Gets if RetryInfo is enabled. If true, client bases retry decision and back off time on server returned RetryInfo value. Otherwise, client usesRetrySettings. -
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()Returns a builder for the default ChannelProvider for this service. -
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider() -
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()Returns a builder for the default credentials for this service. -
readRowsSettings
Returns the object with the settings used for calls to ReadRows.This is idempotent and streaming operation.
Default retry and timeout settings:
Default idle timeoutis set to 5 mins. Idle timeout is how long to wait before considering the stream orphaned by the user and closing it.Default wait timeoutis set to 5 mins. Wait timeout is the maximum amount of time to wait for the next message from the server.- Retry
error codesare:StatusCode.Code.DEADLINE_EXCEEDED,StatusCode.Code.UNAVAILABLEandStatusCode.Code.ABORTED. - RetryDelay between failed attempts
startsat 10ms andincreases exponentiallyby a factor of 2 until amaximum of1 minute. - The default read timeout for
each attemptis 30 minutes withmaximum attemptcount of 10 times and the timeout to read theentire streamis 12 hours.
-
sampleRowKeysSettings
Returns the object with the settings used for calls to SampleRowKeys.This is idempotent and non-streaming operation.
Default retry and timeout settings:
- Retry
error codesare:StatusCode.Code.DEADLINE_EXCEEDEDandStatusCode.Code.UNAVAILABLE. - RetryDelay between failed attempts
startsat 10ms andincreases exponentiallyby a factor of 2 until amaximum of1 minute. - The default timeout for
each attemptis 5 minutes and the timeout for theentire operationacross all of the attempts is 10 mins.
- Retry
-
readRowSettings
Returns the object with the settings used for point reads via ReadRows.This is an idempotent and non-streaming operation.
Default retry and timeout settings:
- Retry
error codesare:StatusCode.Code.DEADLINE_EXCEEDED,StatusCode.Code.UNAVAILABLEandStatusCode.Code.ABORTED. - RetryDelay between failed attempts
startsat 10ms andincreases exponentiallyby a factor of 2 until amaximum of1 minute. - The default timeout for
each attemptis 20 seconds and the timeout for theentire operationacross all of the attempts is 10 mins.
- See Also:
-
for more explanation.
- Retry
-
mutateRowSettings
Returns the object with the settings used for calls to MutateRow.This is an idempotent and non-streaming operation.
Default retry and timeout settings:
- Retry
error codesare:StatusCode.Code.DEADLINE_EXCEEDEDandStatusCode.Code.UNAVAILABLE. - RetryDelay between failed attempts
startsat 10ms andincreases exponentiallyby a factor of 2 until amaximum of60 seconds. - The default timeout for
each attemptis 20 seconds and the timeout for theentire operationacross all of the attempts is 10 mins.
- See Also:
-
for more explanation.
- Retry
-
bulkMutateRowsSettings
Returns the object with the settings used for calls to MutateRows.Please note that these settings will affect both manually batched calls (bulkMutateRowsCallable) and automatic batched calls (bulkMutateRowsBatchingCallable). The
RowMutationrequest signature is ignored for the manual batched calls.Default retry and timeout settings:
- Retry
error codesare:StatusCode.Code.DEADLINE_EXCEEDEDandStatusCode.Code.UNAVAILABLE. - RetryDelay between failed attempts
startsat 10ms andincreases exponentiallyby a factor of 2 until amaximum of1 minute. - The default timeout for
each attemptis 1 minute and the timeout for theentire operationacross all of the attempts is 10 mins.
On breach of certain triggers, the operation initiates processing of accumulated request for which the default settings are:
- When the
request countreaches 100. - When accumulated
request sizereaches to 20MB. - When an
interval of1 second passes after batching initialization or last processed batch.
A
FlowControllerwill be set up with#getDynamicFlowControlSettings()for throttling in-flight requests. When the pending request count or accumulated request size reachesFlowControllerthresholds, then this operation will be throttled until some of the pending batches are resolved.- See Also:
-
for more explanation.for batch related configuration explanation.for flow control related configuration explanation.
- Retry
-
bulkReadRowsSettings
Returns the call settings used for bulk read rows.Default retry and timeout settings:
- Retry
error codesare:StatusCode.Code.DEADLINE_EXCEEDED,StatusCode.Code.UNAVAILABLEandStatusCode.Code.ABORTED. - RetryDelay between failed attempts
startsat 10ms andincreases exponentiallyby a factor of 2 until amaximum of1 minute. - The default timeout for
each attemptis 5 minute and the timeout for theentire operationacross all of the attempts is 10 mins.
On breach of certain triggers, the operation initiates processing of accumulated request for which the default settings are:
- When the
request countreaches 100. - When accumulated
request sizereaches to 400KB. - When an
interval of1 second passes after batching initialization or last processed batch.
When the pending
request countreaches a default of 1000 outstanding row keys per channel then this operation will by default beblockeduntil some of the pending batch are resolved.- See Also:
-
for more explanation.for batch related configuration explanation.
- Retry
-
checkAndMutateRowSettings
public com.google.api.gax.rpc.UnaryCallSettings<ConditionalRowMutation,Boolean> checkAndMutateRowSettings()Returns the object with the settings used for calls to CheckAndMutateRow.This is a non-idempotent and non-streaming operation.
By default this operation does not reattempt in case of RPC failure. The default timeout for the
entire operationis 20 seconds.- See Also:
-
for more explanation.
-
readModifyWriteRowSettings
public com.google.api.gax.rpc.UnaryCallSettings<ReadModifyWriteRow,Row> readModifyWriteRowSettings()Returns the object with the settings used for calls to ReadModifyWriteRow.This is a non-idempotent and non-streaming operation.
By default this operation does not reattempt in case of RPC failure. The default timeout for the
entire operationis 20 seconds.- See Also:
-
for more explanation.
-
generateInitialChangeStreamPartitionsSettings
public com.google.api.gax.rpc.ServerStreamingCallSettings<String,Range.ByteStringRange> generateInitialChangeStreamPartitionsSettings() -
readChangeStreamSettings
public com.google.api.gax.rpc.ServerStreamingCallSettings<ReadChangeStreamQuery,ChangeStreamRecord> readChangeStreamSettings() -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classcom.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>
-
toString
- Overrides:
toStringin classcom.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>
-