T
- exception checking predicate typepublic static class TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<T extends Predicate<Throwable>> extends Object
Constructor and Description |
---|
Builder(int numberOfAttempts,
T exceptionCheck)
Basic constructor
|
Modifier and Type | Method and Description |
---|---|
TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory<T> |
build()
Create new factory instance
|
TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<T> |
withDelay(long delay)
Set delay between attempts
|
TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<T> |
withRequestTimeout(long requestTimeout)
Set timeout for each attempt
|
public Builder(int numberOfAttempts, T exceptionCheck)
numberOfAttempts
- maximum number of retry attemptsexceptionCheck
- predicate checking whether the given exception may be retriedpublic TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<T> withRequestTimeout(long requestTimeout)
requestTimeout
- task timeout, in millisecondspublic TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory.Builder<T> withDelay(long delay)
delay
- task delay, in millisecondspublic TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory<T> build()
Copyright © 2025 Picodata. All rights reserved.