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.
Inheritance
java.lang.Object > UnaryCallSettings.Builder > BatchingCallSettings.Builder<ElementT,ElementResultT,RequestT,ResponseT>Type Parameters
Name | Description |
ElementT | |
ElementResultT | |
RequestT | |
ResponseT |
Methods
build()
public BatchingCallSettings<ElementT,ElementResultT,RequestT,ResponseT> build()
Builds the BatchingCallSettings object with provided configuration.
Type | Description |
BatchingCallSettings<ElementT,ElementResultT,RequestT,ResponseT> |
getBatchingSettings()
public BatchingSettings getBatchingSettings()
Returns the BatchingSettings.
Type | Description |
BatchingSettings |
setBatchingSettings(BatchingSettings batchingSettings)
public BatchingCallSettings.Builder<ElementT,ElementResultT,RequestT,ResponseT> setBatchingSettings(BatchingSettings batchingSettings)
Sets the batching settings with various thresholds.
Name | Description |
batchingSettings | BatchingSettings |
Type | Description |
Builder<ElementT,ElementResultT,RequestT,ResponseT> |
setRetrySettings(RetrySettings retrySettings)
public BatchingCallSettings.Builder<ElementT,ElementResultT,RequestT,ResponseT> setRetrySettings(RetrySettings retrySettings)
Sets the RetrySettings values for each retry attempts.
Name | Description |
retrySettings | RetrySettings |
Type | Description |
Builder<ElementT,ElementResultT,RequestT,ResponseT> |
setRetryableCodes(StatusCode.Code[] codes)
public BatchingCallSettings.Builder<ElementT,ElementResultT,RequestT,ResponseT> setRetryableCodes(StatusCode.Code[] codes)
Sets the rpc failure code, for which retries should be performed.
Name | Description |
codes | Code[] |
Type | Description |
Builder<ElementT,ElementResultT,RequestT,ResponseT> |
setRetryableCodes(Set<StatusCode.Code> retryableCodes)
public BatchingCallSettings.Builder<ElementT,ElementResultT,RequestT,ResponseT> setRetryableCodes(Set<StatusCode.Code> retryableCodes)
Sets the rpc failure code, for which retries should be performed.
Name | Description |
retryableCodes | Set<Code> |
Type | Description |
Builder<ElementT,ElementResultT,RequestT,ResponseT> |