public static class UnaryCallSettings.Builder<RequestT,ResponseT> extends Object
UnaryCallSettings. This class cannot be used to create an
instance of the abstract base class UnaryCallSettings. See the class documentation of UnaryCallSettings for a description of the different values that can be set, and for a
description of when this builder may be used. Builders for concrete derived classes can be used
to create instances of those classes.| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
protected |
Builder(UnaryCallSettings<RequestT,ResponseT> unaryCallSettings) |
| Modifier and Type | Method and Description |
|---|---|
UnaryCallSettings<RequestT,ResponseT> |
build()
Builds an instance of the containing class.
|
Set<StatusCode.Code> |
getRetryableCodes()
See the class documentation of
UnaryCallSettings for a description of what retryable
codes do. |
RetrySettings |
getRetrySettings() |
UnaryCallSettings.Builder<RequestT,ResponseT> |
setRetryableCodes(Set<StatusCode.Code> retryableCodes)
See the class documentation of
UnaryCallSettings for a description of what retryable
codes do. |
UnaryCallSettings.Builder<RequestT,ResponseT> |
setRetryableCodes(StatusCode.Code... codes)
See the class documentation of
UnaryCallSettings for a description of what retryable
codes do. |
UnaryCallSettings.Builder<RequestT,ResponseT> |
setRetrySettings(RetrySettings retrySettings) |
UnaryCallSettings.Builder<RequestT,ResponseT> |
setSimpleTimeoutNoRetries(org.threeten.bp.Duration timeout)
Disables retries and sets the RPC timeout.
|
protected Builder()
protected Builder(UnaryCallSettings<RequestT,ResponseT> unaryCallSettings)
public UnaryCallSettings.Builder<RequestT,ResponseT> setRetryableCodes(Set<StatusCode.Code> retryableCodes)
UnaryCallSettings for a description of what retryable
codes do.public UnaryCallSettings.Builder<RequestT,ResponseT> setRetryableCodes(StatusCode.Code... codes)
UnaryCallSettings for a description of what retryable
codes do.public UnaryCallSettings.Builder<RequestT,ResponseT> setRetrySettings(RetrySettings retrySettings)
public UnaryCallSettings.Builder<RequestT,ResponseT> setSimpleTimeoutNoRetries(org.threeten.bp.Duration timeout)
public Set<StatusCode.Code> getRetryableCodes()
UnaryCallSettings for a description of what retryable
codes do.public RetrySettings getRetrySettings()
public UnaryCallSettings<RequestT,ResponseT> build()