Resilient
|
Define a sequence of polices, which will be executed in order. More...
#include <pipeline.hpp>
Public Member Functions | |
template<typename Policy > | |
Pipeline< Policies..., Policy > | then (Policy &&policy)& |
Create a new Pipeline with a new policy. More... | |
template<typename Policy > | |
Pipeline< Policies..., Policy > | then (Policy &&policy)&& |
template<typename Callable , typename... Args> | |
decltype(auto) | execute (Callable &&callable, Args &&...args) |
Execute the Task with the arguments. More... | |
Friends | |
template<typename... T> | |
class | Pipeline |
template<typename... Policy> | |
Pipeline< Policy... > | pipelineOf (Policy &&...policy) |
Related Functions | |
(Note that these are not member functions.) | |
template<typename... Policies> | |
Pipeline< Policies... > | pipelineOf (Policies &&...policies) |
Create a pipeline of policies. More... | |
Define a sequence of polices, which will be executed in order.
A pipeline of polices runs the task recursively inside a policy. For example, given a pipeline of a RetryPolicy
and a RateLimiter
, when the pipeline is executed the RetryPolicy
is going to retry execution of the RateLimiter
with the provided Task
.
Policies... | The types of the policies |
|
inline |
Execute the Task
with the arguments.
|
inline |
|
inline |
Pipeline::then
|
related |
Create a pipeline of policies.
policies... | The policies to use in creating the pipeline. |