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 theBatchingCallSettings
object 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 theRetrySettings
values for each retry attempts.Methods inherited from class com.google.api.gax.rpc.UnaryCallSettings.Builder
getRetryableCodes, getRetrySettings, retrySettings, setSimpleTimeoutNoRetries
-
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:
setRetryableCodes
in 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:
setRetryableCodes
in classUnaryCallSettings.Builder<RequestT,
ResponseT>
-
setRetrySettings
public BatchingCallSettings.Builder<ElementT,ElementResultT, setRetrySettingsRequestT, ResponseT> (RetrySettings retrySettings) Sets theRetrySettings
values for each retry attempts.- Overrides:
setRetrySettings
in classUnaryCallSettings.Builder<RequestT,
ResponseT> - See Also:
-
build
Builds theBatchingCallSettings
object with provided configuration.- Overrides:
build
in classUnaryCallSettings.Builder<RequestT,
ResponseT>
-