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 forBatchingCallSettings
. See the class documentation ofBatchingCallSettings
for a description of the different values that can be set.
-
-
Method Summary
-
Methods inherited from class com.google.api.gax.rpc.UnaryCallSettings.Builder
getRetryableCodes, getRetrySettings, retrySettings, setSimpleTimeoutNoRetries
-
-
-
-
Method Detail
-
setBatchingSettings
public BatchingCallSettings.Builder<ElementT,ElementResultT,RequestT,ResponseT> setBatchingSettings(BatchingSettings batchingSettings)
Sets the batching settings with various thresholds.
-
getBatchingSettings
public BatchingSettings getBatchingSettings()
Returns theBatchingSettings
.
-
setRetryableCodes
public BatchingCallSettings.Builder<ElementT,ElementResultT,RequestT,ResponseT> setRetryableCodes(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,RequestT,ResponseT> setRetryableCodes(java.util.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,RequestT,ResponseT> setRetrySettings(RetrySettings retrySettings)
Sets theRetrySettings
values for each retry attempts.- Overrides:
setRetrySettings
in classUnaryCallSettings.Builder<RequestT,ResponseT>
- See Also:
UnaryCallSettings.Builder.retrySettings()
-
build
public BatchingCallSettings<ElementT,ElementResultT,RequestT,ResponseT> build()
Builds theBatchingCallSettings
object with provided configuration.- Overrides:
build
in classUnaryCallSettings.Builder<RequestT,ResponseT>
-
-