Package com.google.api.gax.batching
Class BatchingCallSettings.Builder<ElementT,ElementResultT,RequestT,ResponseT>
java.lang.Object
com.google.api.gax.rpc.UnaryCallSettings.Builder<RequestT,ResponseT>
com.google.api.gax.batching.BatchingCallSettings.Builder<ElementT,ElementResultT,RequestT,ResponseT>
- Enclosing class:
- BatchingCallSettings<ElementT,
ElementResultT, RequestT, ResponseT>
public static class BatchingCallSettings.Builder<ElementT,ElementResultT,RequestT,ResponseT>
extends UnaryCallSettings.Builder<RequestT,ResponseT>
A base builder class for
BatchingCallSettings. See the class documentation of BatchingCallSettings for a description of the different values that can be set.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theBatchingCallSettingsobject with provided configuration.Returns theBatchingSettings.setBatchingSettings(BatchingSettings batchingSettings) Sets the batching settings with various thresholds.setRetryableCodes(StatusCode.Code... codes) Sets the rpc failurecode, for which retries should be performed.setRetryableCodes(Set<StatusCode.Code> retryableCodes) Sets the rpc failurecode, for which retries should be performed.setRetrySettings(RetrySettings retrySettings) Sets theRetrySettingsvalues for each retry attempts.Methods inherited from class com.google.api.gax.rpc.UnaryCallSettings.Builder
getRetryableCodes, getRetrySettings, retrySettings, setSimpleTimeoutNoRetries, setSimpleTimeoutNoRetriesDuration
-
Method Details
-
setBatchingSettings
public BatchingCallSettings.Builder<ElementT,ElementResultT, setBatchingSettingsRequestT, ResponseT> (BatchingSettings batchingSettings) Sets the batching settings with various thresholds. -
getBatchingSettings
Returns theBatchingSettings. -
setRetryableCodes
public BatchingCallSettings.Builder<ElementT,ElementResultT, setRetryableCodesRequestT, ResponseT> (StatusCode.Code... codes) Sets the rpc failurecode, for which retries should be performed.- Overrides:
setRetryableCodesin classUnaryCallSettings.Builder<RequestT,ResponseT>
-
setRetryableCodes
public BatchingCallSettings.Builder<ElementT,ElementResultT, setRetryableCodesRequestT, ResponseT> (Set<StatusCode.Code> retryableCodes) Sets the rpc failurecode, for which retries should be performed.- Overrides:
setRetryableCodesin classUnaryCallSettings.Builder<RequestT,ResponseT>
-
setRetrySettings
public BatchingCallSettings.Builder<ElementT,ElementResultT, setRetrySettingsRequestT, ResponseT> (RetrySettings retrySettings) Sets theRetrySettingsvalues for each retry attempts.- Overrides:
setRetrySettingsin classUnaryCallSettings.Builder<RequestT,ResponseT> - See Also:
-
build
Builds theBatchingCallSettingsobject with provided configuration.- Overrides:
buildin classUnaryCallSettings.Builder<RequestT,ResponseT>
-