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
Modifier and TypeClassDescriptionstatic class
Builder 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.Builder
Returns a builder for the default credentials for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
Returns a builder for the default ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
com.google.api.gax.rpc.ServerStreamingCallSettings<String,
Range.ByteStringRange> Returns the configured AppProfile to useReturns the target instance id.Deprecated.This field is ignored.Returns the project id of the target instance.boolean
Deprecated.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, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider
-
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
-
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 timeout
is set to 5 mins. Idle timeout is how long to wait before considering the stream orphaned by the user and closing it.Default wait timeout
is set to 5 mins. Wait timeout is the maximum amount of time to wait for the next message from the server.- Retry
error codes
are:StatusCode.Code.DEADLINE_EXCEEDED
,StatusCode.Code.UNAVAILABLE
andStatusCode.Code.ABORTED
. - RetryDelay between failed attempts
starts
at 10ms andincreases exponentially
by a factor of 2 until amaximum of
1 minute. - The default read timeout for
each attempt
is 30 minutes withmaximum attempt
count of 10 times and the timeout to read theentire stream
is 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 codes
are:StatusCode.Code.DEADLINE_EXCEEDED
andStatusCode.Code.UNAVAILABLE
. - RetryDelay between failed attempts
starts
at 10ms andincreases exponentially
by a factor of 2 until amaximum of
1 minute. - The default timeout for
each attempt
is 5 minutes and the timeout for theentire operation
across 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 codes
are:StatusCode.Code.DEADLINE_EXCEEDED
,StatusCode.Code.UNAVAILABLE
andStatusCode.Code.ABORTED
. - RetryDelay between failed attempts
starts
at 10ms andincreases exponentially
by a factor of 2 until amaximum of
1 minute. - The default timeout for
each attempt
is 20 seconds and the timeout for theentire operation
across 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 codes
are:StatusCode.Code.DEADLINE_EXCEEDED
andStatusCode.Code.UNAVAILABLE
. - RetryDelay between failed attempts
starts
at 10ms andincreases exponentially
by a factor of 2 until amaximum of
60 seconds. - The default timeout for
each attempt
is 20 seconds and the timeout for theentire operation
across 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
RowMutation
request signature is ignored for the manual batched calls.Default retry and timeout settings:
- Retry
error codes
are:StatusCode.Code.DEADLINE_EXCEEDED
andStatusCode.Code.UNAVAILABLE
. - RetryDelay between failed attempts
starts
at 10ms andincreases exponentially
by a factor of 2 until amaximum of
1 minute. - The default timeout for
each attempt
is 1 minute and the timeout for theentire operation
across 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 count
reaches 100. - When accumulated
request size
reaches to 20MB. - When an
interval of
1 second passes after batching initialization or last processed batch.
A
FlowController
will be set up with#getDynamicFlowControlSettings()
for throttling in-flight requests. When the pending request count or accumulated request size reachesFlowController
thresholds, 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 codes
are:StatusCode.Code.DEADLINE_EXCEEDED
,StatusCode.Code.UNAVAILABLE
andStatusCode.Code.ABORTED
. - RetryDelay between failed attempts
starts
at 10ms andincreases exponentially
by a factor of 2 until amaximum of
1 minute. - The default timeout for
each attempt
is 5 minute and the timeout for theentire operation
across 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 count
reaches 100. - When accumulated
request size
reaches to 400KB. - When an
interval of
1 second passes after batching initialization or last processed batch.
When the pending
request count
reaches a default of 1000 outstanding row keys per channel then this operation will by default beblocked
until 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 operation
is 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 operation
is 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:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>
-
toString
- Overrides:
toString
in classcom.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>
-