Class BigtableBatchingCallSettings
java.lang.Object
com.google.api.gax.rpc.UnaryCallSettings<BulkMutation,com.google.cloud.bigtable.data.v2.stub.mutaterows.MutateRowsAttemptResult>
com.google.cloud.bigtable.data.v2.stub.BigtableBatchingCallSettings
@BetaApi("This surface is likely to change as the batching surface evolves.")
public final class BigtableBatchingCallSettings
extends com.google.api.gax.rpc.UnaryCallSettings<BulkMutation,com.google.cloud.bigtable.data.v2.stub.mutaterows.MutateRowsAttemptResult>
This settings holds the batching thresholds as well as retry configuration.
Sample configuration:
BigtableBatchingCallSettings defaultBatchingCallSettings =
bigtableDataCallSettings.getStubSettings().bulkMutateRowsSettings();
BigtableBatchingCallSettings customBatchingCallSettings = defaultBatchingCallSettings.toBuilder()
.setBatchingSettings(
defaultBatchingCallSettings.getBatchingSettings().toBuilder()
.setDelayThreshold(Duration.ofSeconds(10))
.build())
.setRetryableCodes(Code.DEADLINE_EXCEEDED)
.setLatencyBasedThrottling(true, 1000L)
.build();
- See Also:
-
for batching thresholds explantion.for retry configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA base builder class forBigtableBatchingCallSettings. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.batching.BatchingSettingsReturns batching settings which contains multiple batch threshold levels.Gets target rpc latency if latency based throttling is enabled.booleanGets if latency based throttling is enabled.booleanGets if flow control is enabled.Get a builder with the same values as this object.toString()Methods inherited from class com.google.api.gax.rpc.UnaryCallSettings
equals, getRetryableCodes, getRetrySettings, hashCode, newUnaryCallSettingsBuilder
-
Method Details
-
getBatchingSettings
public com.google.api.gax.batching.BatchingSettings getBatchingSettings()Returns batching settings which contains multiple batch threshold levels. -
isLatencyBasedThrottlingEnabled
public boolean isLatencyBasedThrottlingEnabled()Gets if latency based throttling is enabled. -
getTargetRpcLatencyMs
Gets target rpc latency if latency based throttling is enabled. Otherwise returns null. -
isServerInitiatedFlowControlEnabled
@InternalApi("Intended for use by the Bigtable dataflow connectors only") public boolean isServerInitiatedFlowControlEnabled()Gets if flow control is enabled. -
toBuilder
Get a builder with the same values as this object. See the class documentation ofBigtableBatchingCallSettingsfor a sample settings configuration.- Overrides:
toBuilderin classcom.google.api.gax.rpc.UnaryCallSettings<BulkMutation,com.google.cloud.bigtable.data.v2.stub.mutaterows.MutateRowsAttemptResult>
-
toString
- Overrides:
toStringin classcom.google.api.gax.rpc.UnaryCallSettings<BulkMutation,com.google.cloud.bigtable.data.v2.stub.mutaterows.MutateRowsAttemptResult>
-