Class IncludeReplicas (2.21.0)

An IncludeReplicas contains an ordered list of ReplicaSelections that should be considered when serving requests.

When auto_failover_disabled is set, requests will NOT be routed to a healthy replica outside the list when all replicas in the list are unavailable/unhealthy.

Constructors

IncludeReplicas(std::initializer_list< ReplicaSelection >, bool)

Parameters
NameDescription
replica_selections std::initializer_list< ReplicaSelection >
auto_failover_disabled bool

Functions

replica_selections() const

Returns
TypeDescription
std::vector< ReplicaSelection > const &

auto_failover_disabled() const

Returns
TypeDescription
bool