Class RetryingRpcClientBuilder
- java.lang.Object
-
- com.linecorp.armeria.client.retry.RetryingClientBuilder<RetryingRpcClientBuilder,RetryingRpcClient,RpcRequest,RpcResponse>
-
- com.linecorp.armeria.client.retry.RetryingRpcClientBuilder
-
public class RetryingRpcClientBuilder extends RetryingClientBuilder<RetryingRpcClientBuilder,RetryingRpcClient,RpcRequest,RpcResponse>
Builds a newRetryingRpcClient
or its decorator function.
-
-
Constructor Summary
Constructors Constructor Description RetryingRpcClientBuilder(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent)
Creates a new builder with the specifiedRetryStrategyWithContent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetryingRpcClient
build(Client<RpcRequest,RpcResponse> delegate)
Returns a newly-createdRetryingRpcClient
based on the properties of this builder.Function<Client<RpcRequest,RpcResponse>,RetryingRpcClient>
newDecorator()
Returns a newly-created decorator that decorates aClient
with a newRetryingRpcClient
based on the properties of this builder.-
Methods inherited from class com.linecorp.armeria.client.retry.RetryingClientBuilder
maxTotalAttempts, responseTimeoutForEachAttempt, responseTimeoutMillisForEachAttempt, toString
-
-
-
-
Constructor Detail
-
RetryingRpcClientBuilder
public RetryingRpcClientBuilder(RetryStrategyWithContent<RpcResponse> retryStrategyWithContent)
Creates a new builder with the specifiedRetryStrategyWithContent
.
-
-
Method Detail
-
build
public RetryingRpcClient build(Client<RpcRequest,RpcResponse> delegate)
Returns a newly-createdRetryingRpcClient
based on the properties of this builder.
-
newDecorator
public Function<Client<RpcRequest,RpcResponse>,RetryingRpcClient> newDecorator()
Returns a newly-created decorator that decorates aClient
with a newRetryingRpcClient
based on the properties of this builder.
-
-