io.tarantool.driver.api.retry.RequestRetryPolicyFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cartridge-driver Show documentation
Show all versions of cartridge-driver Show documentation
Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework
package io.tarantool.driver.api.retry;
/**
* 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
*
* @author Alexey Kuzin
* @see RequestRetryPolicy
*/
public interface RequestRetryPolicyFactory {
/**
* 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.
*
* @return new policy instance
*/
RequestRetryPolicy create();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy