Class AbstractRetryingClientBuilder<O extends Response>
java.lang.Object
com.linecorp.armeria.client.retry.AbstractRetryingClientBuilder<O>
- Direct Known Subclasses:
RetryingClientBuilder
,RetryingRpcClientBuilder
public abstract class AbstractRetryingClientBuilder<O extends Response> extends Object
Builds a new
AbstractRetryingClient
or its decorator function.-
Method Summary
Modifier and Type Method Description AbstractRetryingClientBuilder<O>
maxTotalAttempts(int maxTotalAttempts)
Deprecated.AbstractRetryingClientBuilder<O>
responseTimeoutForEachAttempt(Duration responseTimeoutForEachAttempt)
Deprecated.AbstractRetryingClientBuilder<O>
responseTimeoutMillisForEachAttempt(long responseTimeoutMillisForEachAttempt)
Deprecated.String
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 dose not specify.- Returns:
this
to support method chaining.- See Also:
- Per-attempt timeout
-
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:
- Per-attempt timeout
-
toString
-
RetryConfigBuilder.maxTotalAttempts(int)
instead.