Class BigtableBatchingCallSettings.Builder

    • Method Detail

      • getBatchingSettings

        public com.google.api.gax.batching.BatchingSettings getBatchingSettings()
        Returns the BatchingSettings.
      • setRetryableCodes

        public BigtableBatchingCallSettings.Builder setRetryableCodes​(com.google.api.gax.rpc.StatusCode.Code... codes)
        Sets the rpc failure code, for which retries should be performed.
        Overrides:
        setRetryableCodes in class com.google.api.gax.rpc.UnaryCallSettings.Builder<BulkMutation,​Void>
      • setRetryableCodes

        public BigtableBatchingCallSettings.Builder setRetryableCodes​(Set<com.google.api.gax.rpc.StatusCode.Code> retryableCodes)
        Sets the rpc failure code, for which retries should be performed.
        Overrides:
        setRetryableCodes in class com.google.api.gax.rpc.UnaryCallSettings.Builder<BulkMutation,​Void>
      • setRetrySettings

        public BigtableBatchingCallSettings.Builder setRetrySettings​(@Nonnull
                                                                     com.google.api.gax.retrying.RetrySettings retrySettings)
        Sets the RetrySettings values for each retry attempts.
        Overrides:
        setRetrySettings in class com.google.api.gax.rpc.UnaryCallSettings.Builder<BulkMutation,​Void>
      • enableLatencyBasedThrottling

        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.
      • getTargetRpcLatencyMs

        @Nullable
        public Long getTargetRpcLatencyMs()
        Gets target rpc latency if latency based throttling is enabled. Otherwise returns null.
      • isLatencyBasedThrottlingEnabled

        public boolean isLatencyBasedThrottlingEnabled()
        Gets if latency based throttling is enabled.
      • setServerInitiatedFlowControl

        @InternalApi("Intended for use by the Bigtable dataflow connectors only")
        public BigtableBatchingCallSettings.Builder setServerInitiatedFlowControl​(boolean isEnable)
        Configure flow control based on the current load of the Bigtable server.
      • isServerInitiatedFlowControlEnabled

        @InternalApi("Intended for use by the Bigtable dataflow connectors only")
        public boolean isServerInitiatedFlowControlEnabled()
        Gets if flow control is enabled based on the load of the Bigtable server.