public static class BigtableBatchingCallSettings.Builder extends com.google.api.gax.rpc.UnaryCallSettings.Builder<BulkMutation,Void>
BigtableBatchingCallSettings. See the class documentation of
BigtableBatchingCallSettings for a description of the different values that can be set.| Modifier and Type | Method and Description |
|---|---|
BigtableBatchingCallSettings |
build()
Builds the
BigtableBatchingCallSettings object with provided configuration. |
BigtableBatchingCallSettings.Builder |
disableLatencyBasedThrottling()
Disable latency based throttling.
|
BigtableBatchingCallSettings.Builder |
enableLatencyBasedThrottling(long targetRpcLatency)
Enable latency based throttling.
|
com.google.api.gax.batching.BatchingSettings |
getBatchingSettings()
Returns the
BatchingSettings. |
Long |
getTargetRpcLatencyMs()
Gets target rpc latency if latency based throttling is enabled.
|
boolean |
isLatencyBasedThrottlingEnabled()
Gets if latency based throttling is enabled.
|
BigtableBatchingCallSettings.Builder |
setBatchingSettings(com.google.api.gax.batching.BatchingSettings batchingSettings)
Sets the batching settings with various thresholds.
|
BigtableBatchingCallSettings.Builder |
setRetryableCodes(Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
Sets the rpc failure
code, for which retries should be performed. |
BigtableBatchingCallSettings.Builder |
setRetryableCodes(com.google.api.gax.rpc.StatusCode.Code... codes)
Sets the rpc failure
code, for which retries should be performed. |
BigtableBatchingCallSettings.Builder |
setRetrySettings(com.google.api.gax.retrying.RetrySettings retrySettings)
Sets the
RetrySettings values for each retry attempts. |
public BigtableBatchingCallSettings.Builder setBatchingSettings(@Nonnull com.google.api.gax.batching.BatchingSettings batchingSettings)
public com.google.api.gax.batching.BatchingSettings getBatchingSettings()
BatchingSettings.public BigtableBatchingCallSettings.Builder setRetryableCodes(com.google.api.gax.rpc.StatusCode.Code... codes)
code, for which retries should be performed.setRetryableCodes in class com.google.api.gax.rpc.UnaryCallSettings.Builder<BulkMutation,Void>public BigtableBatchingCallSettings.Builder setRetryableCodes(Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
code, for which retries should be performed.setRetryableCodes in class com.google.api.gax.rpc.UnaryCallSettings.Builder<BulkMutation,Void>public BigtableBatchingCallSettings.Builder setRetrySettings(@Nonnull com.google.api.gax.retrying.RetrySettings retrySettings)
RetrySettings values for each retry attempts.setRetrySettings in class com.google.api.gax.rpc.UnaryCallSettings.Builder<BulkMutation,Void>public BigtableBatchingCallSettings.Builder enableLatencyBasedThrottling(long targetRpcLatency)
public BigtableBatchingCallSettings.Builder disableLatencyBasedThrottling()
@Nullable public Long getTargetRpcLatencyMs()
public boolean isLatencyBasedThrottlingEnabled()
public BigtableBatchingCallSettings build()
BigtableBatchingCallSettings object with provided configuration.build in class com.google.api.gax.rpc.UnaryCallSettings.Builder<BulkMutation,Void>Copyright © 2023 Google LLC. All rights reserved.