public interface TarantoolClientConfigurator<SELF extends TarantoolClientConfigurator<SELF>>
Provides a single entry point for configuring all types of Tarantool clients.
SELF withProxyMethodMapping()
TarantoolClientConfigurator
SELF withProxyMethodMapping(UnaryOperator<ProxyOperationsMappingConfig.Builder> builder)
builder
- builder provider instance, e.g. a lambda function taking the builderTarantoolClientConfigurator
SELF withRetryingByNumberOfAttempts(int numberOfAttempts)
numberOfAttempts
- the number of retry attempts for each requestTarantoolClientConfigurator
SELF 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 builderTarantoolClientConfigurator
SELF 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 callbacksTarantoolClientConfigurator
SELF withRetryingIndefinitely(UnaryOperator<TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory.Builder<Predicate<Throwable>>> policy)
policy
- builder provider for TarantoolRequestRetryPolicies.InfiniteRetryPolicy
,
e.g. a lambda function taking the builderTarantoolClientConfigurator
SELF 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 callbacksTarantoolClientConfigurator
SELF withRetrying(RequestRetryPolicyFactory factory)
factory
- RequestRetryPolicyFactory
TarantoolClientConfigurator
TarantoolRequestRetryPolicies
SELF withRetrying(RequestRetryPolicyFactory factory, Executor executor)
factory
- RequestRetryPolicyFactory
executor
- executor service for retry callbacksTarantoolClientConfigurator
TarantoolRequestRetryPolicies
TarantoolClient<TarantoolTuple,TarantoolResult<TarantoolTuple>> build()
TarantoolClient
Copyright © 2025 Picodata. All rights reserved.