public class EnhancedBigtableStubSettings extends com.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>
EnhancedBigtableStub.
Sane defaults are provided for most settings:
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
EnhancedBigtableStubSettings.Builder
Builder for BigtableDataSettings.
|
| Modifier and Type | Method and Description |
|---|---|
BigtableBatchingCallSettings |
bulkMutateRowsSettings()
Returns the object with the settings used for calls to MutateRows.
|
com.google.api.gax.rpc.UnaryCallSettings<ConditionalRowMutation,Boolean> |
checkAndMutateRowSettings()
Returns the object with the settings used for calls to CheckAndMutateRow.
|
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
String |
getAppProfileId()
Returns the configured AppProfile to use
|
String |
getInstanceId()
Returns the target instance id.
|
String |
getProjectId()
Returns the project id of the target instance.
|
com.google.api.gax.rpc.UnaryCallSettings<RowMutation,Void> |
mutateRowSettings()
Returns the object with the settings used for calls to MutateRow.
|
static EnhancedBigtableStubSettings.Builder |
newBuilder()
Create a new builder.
|
com.google.api.gax.rpc.UnaryCallSettings<ReadModifyWriteRow,Row> |
readModifyWriteRowSettings()
Returns the object with the settings used for calls to ReadModifyWriteRow.
|
com.google.api.gax.rpc.UnaryCallSettings<Query,Row> |
readRowSettings()
Returns the object with the settings used for point reads via ReadRows.
|
com.google.api.gax.rpc.ServerStreamingCallSettings<Query,Row> |
readRowsSettings()
Returns the object with the settings used for calls to ReadRows.
|
com.google.api.gax.rpc.UnaryCallSettings<String,List<KeyOffset>> |
sampleRowKeysSettings()
Returns the object with the settings used for calls to SampleRowKeys.
|
EnhancedBigtableStubSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
public static EnhancedBigtableStubSettings.Builder newBuilder()
public String getProjectId()
public String getInstanceId()
public String getAppProfileId()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public com.google.api.gax.rpc.ServerStreamingCallSettings<Query,Row> readRowsSettings()
This is idempotent and streaming operation.
Default retry and timeout settings:
Default idle timeout is set to
5 mins.
error codes are:
StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE and StatusCode.Code.ABORTED.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 1 minute.
each row in a
response stream is 5 minutes and the timeout to read the entire stream is 12 hours.
public com.google.api.gax.rpc.UnaryCallSettings<String,List<KeyOffset>> sampleRowKeysSettings()
This is idempotent and non-streaming operation.
Default retry and timeout settings:
error codes are: StatusCode.Code.DEADLINE_EXCEEDED and StatusCode.Code.UNAVAILABLE.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 1 minute.
each attempt is 20
seconds and the timeout for the entire
operation across all of the attempts is 10 mins.
public com.google.api.gax.rpc.UnaryCallSettings<Query,Row> readRowSettings()
This is an idempotent and non-streaming operation.
Default retry and timeout settings:
error codes are: StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE and StatusCode.Code.ABORTED.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 1 minute.
each attempt is 20
seconds and the timeout for the entire
operation across all of the attempts is 10 mins.
for more explanation.public com.google.api.gax.rpc.UnaryCallSettings<RowMutation,Void> mutateRowSettings()
This is an idempotent and non-streaming operation.
Default retry and timeout settings:
error codes are: StatusCode.Code.DEADLINE_EXCEEDED and StatusCode.Code.UNAVAILABLE.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 60 seconds.
each attempt is 20
seconds and the timeout for the entire
operation across all of the attempts is 10 mins.
for more explanation.public BigtableBatchingCallSettings bulkMutateRowsSettings()
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:
error codes are: StatusCode.Code.DEADLINE_EXCEEDED and StatusCode.Code.UNAVAILABLE.
starts at 10ms and increases
exponentially by a factor of 2 until a maximum of 1 minute.
each attempt is 1
minute and the timeout for the entire
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:
request count reaches
100.
request size
reaches to 20MB.
interval of 1 second passes
after batching initialization or last processed batch.
When the pending request
count reaches a default of 1000 or their accumulated size reaches default
value of 100MB, then this operation will by default be blocked until some of the pending batch
are resolved.
for more explanation.,
for batch related configuration explanation.public com.google.api.gax.rpc.UnaryCallSettings<ConditionalRowMutation,Boolean> checkAndMutateRowSettings()
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.
for more explanation.public com.google.api.gax.rpc.UnaryCallSettings<ReadModifyWriteRow,Row> readModifyWriteRowSettings()
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.
for more explanation.public EnhancedBigtableStubSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.StubSettings<EnhancedBigtableStubSettings>Copyright © 2019 Google LLC. All rights reserved.