#include <ozo/failover/strategy.h>
template<typename ConnectionProvider, typename TimeConstraint, typename ... Args>
struct ozo::failover::basic_context< ConnectionProvider, TimeConstraint, Args >
Basic operation context.
- Template Parameters
-
ConnectionProvider | — connection provider type. |
TimeConstraint | — operation #TimeConstraint type. |
Args | — other operation arguments' type. |
|
std::decay_t< ConnectionProvider > | provider |
| connection provider for an operation, typically deduced from operation's 1st argument.
|
|
TimeConstraint | time_constraint |
| #TimeConstraint for an operation, typically deduced from operation's 2nd argument.
|
|
hana::tuple< std::decay_t< Args >... > | args |
| Other arguments of an operation except CompletionToken.
|
|
◆ basic_context()
template<typename ConnectionProvider , typename TimeConstraint , typename ... Args>
Construct a new basic context object
- Parameters
-
p | — connection provider for an operation. |
t | — #TimeConstraint for an operation. |
args | — other arguments of an operation except CompletionToken. |