Resilient
Public Types | Public Member Functions | List of all members
resilient::retry::Retries Class Reference

State to allow to retry a fixed number of times. More...

#include <retries.hpp>

Public Types

using stopretries_type = NoMoreRetriesLeft
 

Public Member Functions

 Retries (unsigned int numberOfRetries)
 Construct a new Retry Times object which retries a fixed number of times. More...
 
Variant< retry_after, stopretries_typeshouldRetry ()
 
template<typename T >
void failedWith (T)
 

Detailed Description

State to allow to retry a fixed number of times.

Failures returned by the executed function are ignored.

Note
Implements the RetryState concept.

Constructor & Destructor Documentation

resilient::retry::Retries::Retries ( unsigned int  numberOfRetries)
inline

Construct a new Retry Times object which retries a fixed number of times.

Parameters
numberOfRetriesThe number of retries

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