Class IncludeReplicas (2.20.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
Name Description
replica_selections std::initializer_list< ReplicaSelection >
auto_failover_disabled bool

Functions

replica_selections() const

Returns
Type Description
std::vector< ReplicaSelection > const &

auto_failover_disabled() const

Returns
Type Description
bool