libQuotient
A Qt library for building matrix clients
Quotient::JobBackoffStrategy Struct Reference

#include <basejob.h>

Public Types

using duration_t = std::chrono::seconds
 

Public Attributes

QVector< duration_tjobTimeouts
 
QVector< duration_tnextRetryIntervals
 
std::optional< decltype(jobTimeouts)::size_type > maxRetries = jobTimeouts.size()
 How many times a network request should be tried; std::nullopt means keep trying forever. More...
 

Detailed Description

Definition at line 26 of file basejob.h.

Member Typedef Documentation

◆ duration_t

using Quotient::JobBackoffStrategy::duration_t = std::chrono::seconds

Definition at line 27 of file basejob.h.

Member Data Documentation

◆ jobTimeouts

QVector<duration_t> Quotient::JobBackoffStrategy::jobTimeouts

Definition at line 28 of file basejob.h.

◆ maxRetries

std::optional<decltype(jobTimeouts)::size_type> Quotient::JobBackoffStrategy::maxRetries = jobTimeouts.size()

How many times a network request should be tried; std::nullopt means keep trying forever.

Definition at line 31 of file basejob.h.

◆ nextRetryIntervals

QVector<duration_t> Quotient::JobBackoffStrategy::nextRetryIntervals

Definition at line 29 of file basejob.h.


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