Class AbstractRetryingClientBuilder<O extends Response>
java.lang.Object
com.linecorp.armeria.client.retry.AbstractRetryingClientBuilder<O>
- Direct Known Subclasses:
RetryingClientBuilder
,RetryingRpcClientBuilder
Builds a new
AbstractRetryingClient
or its decorator function.-
Method Summary
Modifier and TypeMethodDescriptionmaxTotalAttempts
(int maxTotalAttempts) Deprecated.responseTimeoutForEachAttempt
(Duration responseTimeoutForEachAttempt) Deprecated.responseTimeoutMillisForEachAttempt
(long responseTimeoutMillisForEachAttempt) Deprecated.toString()
-
Method Details
-
maxTotalAttempts
Deprecated.UseRetryConfigBuilder.maxTotalAttempts(int)
instead.Sets the maximum allowed number of total attempts. If unspecified, the value fromFlags.defaultMaxTotalAttempts()
will be used.- Returns:
this
to support method chaining.
-
responseTimeoutMillisForEachAttempt
@Deprecated public AbstractRetryingClientBuilder<O> responseTimeoutMillisForEachAttempt(long responseTimeoutMillisForEachAttempt) Deprecated.Sets the response timeout for each attempt in milliseconds. When requests inAbstractRetryingClient
are made, corresponding responses are timed out by this value.0
disables the timeout. It will be set by the default value inFlags.defaultResponseTimeoutMillis()
, if the client does not specify.- Returns:
this
to support method chaining.- See Also:
-
responseTimeoutForEachAttempt
@Deprecated public AbstractRetryingClientBuilder<O> responseTimeoutForEachAttempt(Duration responseTimeoutForEachAttempt) Deprecated.Sets the response timeout for each attempt. When requests inAbstractRetryingClient
are made, corresponding responses are timed out by this value.0
disables the timeout.- Returns:
this
to support method chaining.- See Also:
-
toString
-
RetryConfigBuilder.maxTotalAttempts(int)
instead.