mal-packet-weaver
C++20 packet serialization/deserialization library.
Loading...
Searching...
No Matches
backoffs.hpp File Reference
#include <algorithm>
#include <chrono>
#include <random>
Include dependency graph for backoffs.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mal_toolkit::ExponentialBackoff< ChronoType >
 A utility class for implementing exponential backoff strategies. More...
 
class  mal_toolkit::LinearBackoff< ChronoType >
 A utility class for implementing linear backoff strategies. More...
 

Namespaces

namespace  mal_toolkit
 Contains a collection of tools and utilities provided by the MAL Toolkit library.
 

Typedefs

using mal_toolkit::ExponentialBackoffNs = ExponentialBackoff<std::chrono::nanoseconds>
 
using mal_toolkit::ExponentialBackoffUs = ExponentialBackoff<std::chrono::microseconds>
 
using mal_toolkit::ExponentialBackoffMs = ExponentialBackoff<std::chrono::milliseconds>
 
using mal_toolkit::ExponentialBackoffSec = ExponentialBackoff<std::chrono::seconds>
 
using mal_toolkit::LinearBackoffNs = LinearBackoff<std::chrono::nanoseconds>
 
using mal_toolkit::LinearBackoffUs = LinearBackoff<std::chrono::microseconds>
 
using mal_toolkit::LinearBackoffMs = LinearBackoff<std::chrono::milliseconds>
 
using mal_toolkit::LinearBackoffSec = LinearBackoff<std::chrono::seconds>