#include <ozo/failover/role_based.h>
Options for role-based failover.
These options can be used with ozo::failover::role_based_strategy
.
Static Public Attributes | |
constexpr static option< on_fallback_tag > | on_fallback {} |
Handler for fallback event with signature void(error_code, Connection, Fallback) , may be useful for logging. | |
constexpr static option< close_connection_tag > | close_connection {} |
Close connection policy on retry, possible values true (default), false . | |
constexpr static option< roles_tag > | roles {} |
Strategy roles sequence. | |