Class BigtableBatchingCallSettings (2.7.0)

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.

Inheritance

java.lang.Object > UnaryCallSettings > BigtableBatchingCallSettings

Methods

getBatchingSettings()

public BatchingSettings getBatchingSettings()

Returns batching settings which contains multiple batch threshold levels.

Returns
TypeDescription
BatchingSettings

getTargetRpcLatencyMs()

public Long getTargetRpcLatencyMs()

Gets target rpc latency if latency based throttling is enabled. Otherwise returns null.

Returns
TypeDescription
Long

isLatencyBasedThrottlingEnabled()

public boolean isLatencyBasedThrottlingEnabled()

Gets if latency based throttling is enabled.

Returns
TypeDescription
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.

Returns
TypeDescription
BigtableBatchingCallSettings.Builder
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides