public class TarantoolClientConfiguratorImpl<SELF extends TarantoolClientConfigurator<SELF>> extends Object implements TarantoolClientConfigurator<SELF>
| Modifier and Type | Field and Description |
|---|---|
protected Executor |
executor |
protected ProxyOperationsMappingConfig |
mappingConfig |
protected RequestRetryPolicyFactory |
retryPolicyFactory |
| Modifier | Constructor and Description |
|---|---|
protected |
TarantoolClientConfiguratorImpl() |
|
TarantoolClientConfiguratorImpl(TarantoolClient<TarantoolTuple,TarantoolResult<TarantoolTuple>> client) |
protected RequestRetryPolicyFactory retryPolicyFactory
protected ProxyOperationsMappingConfig mappingConfig
protected Executor executor
public TarantoolClientConfiguratorImpl(TarantoolClient<TarantoolTuple,TarantoolResult<TarantoolTuple>> client)
protected TarantoolClientConfiguratorImpl()
public SELF withProxyMethodMapping()
TarantoolClientConfiguratorwithProxyMethodMapping in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>TarantoolClientConfiguratorpublic SELF withProxyMethodMapping(UnaryOperator<ProxyOperationsMappingConfig.Builder> builder)
TarantoolClientConfiguratorwithProxyMethodMapping in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>builder - builder provider instance, e.g. a lambda function taking the builderTarantoolClientConfiguratorpublic SELF withRetryingByNumberOfAttempts(int numberOfAttempts)
TarantoolClientConfiguratorwithRetryingByNumberOfAttempts in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>numberOfAttempts - the number of retry attempts for each requestTarantoolClientConfiguratorpublic SELF withRetryingByNumberOfAttempts(int numberOfAttempts, UnaryOperator<TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<Predicate<Throwable>>> policy)
TarantoolClientConfiguratorwithRetryingByNumberOfAttempts in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>numberOfAttempts - the number of retry attempts for each requestpolicy - builder provider for TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicy,
e.g. a lambda function taking the builderTarantoolClientConfiguratorpublic SELF withRetryingByNumberOfAttempts(int numberOfAttempts, UnaryOperator<TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<Predicate<Throwable>>> policy, Executor executor)
TarantoolClientConfiguratorwithRetryingByNumberOfAttempts in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>numberOfAttempts - the number of retry attempts for each requestpolicy - builder provider for TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicy,
e.g. a lambda function taking the builderexecutor - executor service for retry callbacksTarantoolClientConfiguratorpublic <T extends Predicate<Throwable>> SELF withRetryingByNumberOfAttempts(int numberOfAttempts, T exceptionsCheck, UnaryOperator<TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<T>> policy)
TarantoolClientConfiguratorwithRetryingByNumberOfAttempts in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>T - callback type for exceptions checknumberOfAttempts - the number of retry attempts for each requestexceptionsCheck - function checking whether the given exception may be retriedpolicy - builder provider for TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicy,
e.g. a lambda function taking the builderTarantoolClientConfiguratorpublic <T extends Predicate<Throwable>> SELF withRetryingByNumberOfAttempts(int numberOfAttempts, T exceptionsCheck, UnaryOperator<TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<T>> policy, Executor executor)
TarantoolClientConfiguratorwithRetryingByNumberOfAttempts in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>T - callback type for exceptions checknumberOfAttempts - the number of retry attempts for each requestexceptionsCheck - function checking whether the given exception may be retriedpolicy - builder provider for TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicy,
e.g. a lambda function taking the builderexecutor - executor service for retry callbacksTarantoolClientConfiguratorpublic SELF withRetryingIndefinitely(UnaryOperator<TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<Predicate<Throwable>>> policy, Executor executor)
TarantoolClientConfiguratorwithRetryingIndefinitely in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>policy - builder provider for TarantoolRequestRetryPolicies.InfiniteRetryPolicy,
e.g. a lambda function taking the builderexecutor - executor service for retry callbacksTarantoolClientConfiguratorpublic SELF withRetryingIndefinitely(UnaryOperator<TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<Predicate<Throwable>>> policy)
TarantoolClientConfiguratorwithRetryingIndefinitely in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>policy - builder provider for TarantoolRequestRetryPolicies.InfiniteRetryPolicy,
e.g. a lambda function taking the builderTarantoolClientConfiguratorpublic <T extends Predicate<Throwable>> SELF withRetryingIndefinitely(T callback, UnaryOperator<TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<T>> policy)
TarantoolClientConfiguratorwithRetryingIndefinitely in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>T - callback type for exceptions checkcallback - function checking whether the given exception may be retriedpolicy - builder provider for TarantoolRequestRetryPolicies.InfiniteRetryPolicy,
e.g. a lambda function taking the builderTarantoolClientConfiguratorpublic <T extends Predicate<Throwable>> SELF withRetryingIndefinitely(T callback, UnaryOperator<TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<T>> policy, Executor executor)
TarantoolClientConfiguratorwithRetryingIndefinitely in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>T - callback type for exceptions checkcallback - function checking whether the given exception may be retriedpolicy - builder provider for TarantoolRequestRetryPolicies.InfiniteRetryPolicy,
e.g. a lambda function taking the builderexecutor - executor service for retry callbacksTarantoolClientConfiguratorpublic SELF withRetrying(RequestRetryPolicyFactory factory)
TarantoolClientConfiguratorwithRetrying in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>factory - RequestRetryPolicyFactoryTarantoolClientConfiguratorTarantoolRequestRetryPoliciespublic SELF withRetrying(RequestRetryPolicyFactory factory, Executor executor)
TarantoolClientConfiguratorwithRetrying in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>factory - RequestRetryPolicyFactoryexecutor - executor service for retry callbacksTarantoolClientConfiguratorTarantoolRequestRetryPoliciespublic TarantoolClient<TarantoolTuple,TarantoolResult<TarantoolTuple>> build()
TarantoolClientConfiguratorbuild in interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>TarantoolClientprotected TarantoolClient<TarantoolTuple,TarantoolResult<TarantoolTuple>> decorate(TarantoolClient<TarantoolTuple,TarantoolResult<TarantoolTuple>> client)
client - Tarantool client for decoratingTarantoolClientConfigurator have not been providedCopyright © 2025 Picodata. All rights reserved.