public final class BigtableBatchingCallSettings extends UnaryCallSettings<BulkMutation,Void>
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: RetrySettingsfor retry configuration., BatchingSettingsfor batching thresholds explantion.
Methods
getBatchingSettings()
public BatchingSettings getBatchingSettings()
Returns batching settings which contains multiple batch threshold levels.
Type | Description |
BatchingSettings |
getTargetRpcLatencyMs()
public Long getTargetRpcLatencyMs()
Gets target rpc latency if latency based throttling is enabled. Otherwise returns null.
Type | Description |
Long |
isLatencyBasedThrottlingEnabled()
public boolean isLatencyBasedThrottlingEnabled()
Gets if latency based throttling is enabled.
Type | Description |
boolean |
toBuilder()
public final BigtableBatchingCallSettings.Builder toBuilder()
Get a builder with the same values as this object. See the class documentation of BigtableBatchingCallSettings for a sample settings configuration.
Type | Description |
BigtableBatchingCallSettings.Builder |
toString()
public String toString()
Type | Description |
String |