public static class UnaryCallSettings.Builder 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 unaryCallSettings) |
| Modifier and Type | Method and Description |
|---|---|
UnaryCallSettings |
build()
Builds an instance of the containing class.
|
Set<StatusCode> |
getRetryableCodes()
See the class documentation of
UnaryCallSettings for a description of what retryable
codes do. |
RetrySettings |
getRetrySettings() |
UnaryCallSettings.Builder |
setRetryableCodes(Set<StatusCode> retryableCodes)
See the class documentation of
UnaryCallSettings for a description of what retryable
codes do. |
UnaryCallSettings.Builder |
setRetryableCodes(StatusCode... codes)
See the class documentation of
UnaryCallSettings for a description of what retryable
codes do. |
UnaryCallSettings.Builder |
setRetrySettings(RetrySettings retrySettings) |
UnaryCallSettings.Builder |
setSimpleTimeoutNoRetries(org.threeten.bp.Duration timeout)
Disables retries and sets the RPC timeout.
|
protected Builder()
protected Builder(UnaryCallSettings unaryCallSettings)
public UnaryCallSettings.Builder setRetryableCodes(Set<StatusCode> retryableCodes)
UnaryCallSettings for a description of what retryable
codes do.public UnaryCallSettings.Builder setRetryableCodes(StatusCode... codes)
UnaryCallSettings for a description of what retryable
codes do.public UnaryCallSettings.Builder setRetrySettings(RetrySettings retrySettings)
public UnaryCallSettings.Builder setSimpleTimeoutNoRetries(org.threeten.bp.Duration timeout)
public Set<StatusCode> getRetryableCodes()
UnaryCallSettings for a description of what retryable
codes do.public RetrySettings getRetrySettings()
public UnaryCallSettings build()