public interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>
Provides a single entry point for configuring all types of Tarantool clients.
SELF withProxyMethodMapping()
TarantoolClientConfiguratorSELF withProxyMethodMapping(UnaryOperator<ProxyOperationsMappingConfig.Builder> builder)
builder - builder provider instance, e.g. a lambda function taking the builderTarantoolClientConfiguratorSELF withRetryingByNumberOfAttempts(int numberOfAttempts)
numberOfAttempts - the number of retry attempts for each requestTarantoolClientConfiguratorSELF withRetryingByNumberOfAttempts(int numberOfAttempts, UnaryOperator<TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<Predicate<Throwable>>> policy)
numberOfAttempts - the number of retry attempts for each requestpolicy - builder provider for TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicy,
e.g. a lambda function taking the builderTarantoolClientConfiguratorSELF withRetryingByNumberOfAttempts(int numberOfAttempts, UnaryOperator<TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<Predicate<Throwable>>> policy, Executor executor)
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 callbacksTarantoolClientConfigurator<T extends Predicate<Throwable>> SELF withRetryingByNumberOfAttempts(int numberOfAttempts, T exceptionsCheck, UnaryOperator<TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<T>> policy)
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 builderTarantoolClientConfigurator<T extends Predicate<Throwable>> SELF withRetryingByNumberOfAttempts(int numberOfAttempts, T exceptionsCheck, UnaryOperator<TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<T>> policy, Executor executor)
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 callbacksTarantoolClientConfiguratorSELF withRetryingIndefinitely(UnaryOperator<TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<Predicate<Throwable>>> policy)
policy - builder provider for TarantoolRequestRetryPolicies.InfiniteRetryPolicy,
e.g. a lambda function taking the builderTarantoolClientConfiguratorSELF withRetryingIndefinitely(UnaryOperator<TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<Predicate<Throwable>>> policy, Executor executor)
policy - builder provider for TarantoolRequestRetryPolicies.InfiniteRetryPolicy,
e.g. a lambda function taking the builderexecutor - executor service for retry callbacksTarantoolClientConfigurator<T extends Predicate<Throwable>> SELF withRetryingIndefinitely(T callback, UnaryOperator<TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<T>> policy)
T - callback type for exceptions checkpolicy - builder provider for TarantoolRequestRetryPolicies.InfiniteRetryPolicy,
e.g. a lambda function taking the buildercallback - function checking whether the given exception may be retriedTarantoolClientConfigurator<T extends Predicate<Throwable>> SELF withRetryingIndefinitely(T callback, UnaryOperator<TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<T>> policy, Executor executor)
T - callback type for exceptions checkpolicy - builder provider for TarantoolRequestRetryPolicies.InfiniteRetryPolicy,
e.g. a lambda function taking the buildercallback - function checking whether the given exception may be retriedexecutor - executor service for retry callbacksTarantoolClientConfiguratorSELF withRetrying(RequestRetryPolicyFactory factory)
factory - RequestRetryPolicyFactoryTarantoolClientConfiguratorTarantoolRequestRetryPoliciesSELF withRetrying(RequestRetryPolicyFactory factory, Executor executor)
factory - RequestRetryPolicyFactoryexecutor - executor service for retry callbacksTarantoolClientConfiguratorTarantoolRequestRetryPoliciesTarantoolClient<TarantoolTuple,TarantoolResult<TarantoolTuple>> build()
TarantoolClientCopyright © 2025 Picodata. All rights reserved.