Package io.tarantool.driver.api.retry
Interface RequestRetryPolicyFactory
-
- All Known Implementing Classes:
TarantoolRequestRetryPolicies.AttemptsBoundRetryPolicyFactory
,TarantoolRequestRetryPolicies.InfiniteRetryPolicyFactory
public interface RequestRetryPolicyFactory
Manages instantiation of request retry policies. A policy contains an algorithm of deciding whether an exception is retryable and settings for limiting the retry attempts- See Also:
RequestRetryPolicy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestRetryPolicy
create()
Instantiate a new request retry policy instance.
-
-
-
Method Detail
-
create
RequestRetryPolicy create()
Instantiate a new request retry policy instance. The policy may be either stateful or stateless, so depending on that the policy may be either instantiated as a singleton or once per request.- Returns:
- new policy instance
-
-