C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::IRetryConfigProvider Class Referenceabstract

The library uses this class to understand how to retry individual requests. More...

#include <retry_policy.h>

Inheritance diagram for NYT::IRetryConfigProvider:

Public Member Functions

virtual TRetryConfig CreateRetryConfig ()=0
 Gets retry policy for single request.

Detailed Description

The library uses this class to understand how to retry individual requests.

Member Function Documentation

◆ CreateRetryConfig()

virtual TRetryConfig NYT::IRetryConfigProvider::CreateRetryConfig ( )
pure virtual

Gets retry policy for single request.

CreateRetryConfig is called before ANY request. Returned config controls retries of this request.

Must be thread safe since it can be used from different threads to perform internal library requests (e.g. pings).

Some methods (e.g. IClient::Map) involve multiple requests to YT and therefore this method will be called several times during execution of single method.

If user needs to limit overall retries inside long operation they might create retry policy that knows about overall deadline NYT::TRetryConfig::RetriesTimeLimit taking into account that overall deadline. (E.g. when deadline reached it returns zero limit for retries).


The documentation for this class was generated from the following file: