Class BigtableBatchingCallSettings.Builder (2.9.0)

public static class BigtableBatchingCallSettings.Builder extends UnaryCallSettings.Builder<BulkMutation,Void>

A base builder class for BigtableBatchingCallSettings. See the class documentation of BigtableBatchingCallSettings for a description of the different values that can be set.

Inheritance

java.lang.Object > UnaryCallSettings.Builder > BigtableBatchingCallSettings.Builder

Methods

build()

public BigtableBatchingCallSettings build()

Builds the BigtableBatchingCallSettings object with provided configuration.

Returns
TypeDescription
BigtableBatchingCallSettings
Overrides

disableLatencyBasedThrottling()

public BigtableBatchingCallSettings.Builder disableLatencyBasedThrottling()

Disable latency based throttling.

Returns
TypeDescription
BigtableBatchingCallSettings.Builder

enableLatencyBasedThrottling(long targetRpcLatency)

public BigtableBatchingCallSettings.Builder enableLatencyBasedThrottling(long targetRpcLatency)

Enable latency based throttling. The number of allowed in-flight requests will be adjusted to reach the target rpc latency.

Parameter
NameDescription
targetRpcLatencylong
Returns
TypeDescription
BigtableBatchingCallSettings.Builder

getBatchingSettings()

public BatchingSettings getBatchingSettings()

Returns the BatchingSettings.

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

setBatchingSettings(BatchingSettings batchingSettings)

public BigtableBatchingCallSettings.Builder setBatchingSettings(BatchingSettings batchingSettings)

Sets the batching settings with various thresholds.

Parameter
NameDescription
batchingSettingsBatchingSettings
Returns
TypeDescription
BigtableBatchingCallSettings.Builder

setRetrySettings(RetrySettings retrySettings)

public BigtableBatchingCallSettings.Builder setRetrySettings(RetrySettings retrySettings)

Sets the RetrySettings values for each retry attempts.

Parameter
NameDescription
retrySettingsRetrySettings
Returns
TypeDescription
BigtableBatchingCallSettings.Builder
Overrides

setRetryableCodes(StatusCode.Code[] codes)

public BigtableBatchingCallSettings.Builder setRetryableCodes(StatusCode.Code[] codes)

Sets the rpc failure code, for which retries should be performed.

Parameter
NameDescription
codesCode[]
Returns
TypeDescription
BigtableBatchingCallSettings.Builder
Overrides

setRetryableCodes(Set<StatusCode.Code> retryableCodes)

public BigtableBatchingCallSettings.Builder setRetryableCodes(Set<StatusCode.Code> retryableCodes)

Sets the rpc failure code, for which retries should be performed.

Parameter
NameDescription
retryableCodesSet<Code>
Returns
TypeDescription
BigtableBatchingCallSettings.Builder
Overrides