Class ReplicaSelection (2.21.0)

The directed-read replica selector.

Callers must provide one or more of the following fields:

  • location: One of the regions within the multi-region configuration of your database.
  • type: The type of the replica.

Constructors

ReplicaSelection(std::string, ReplicaType)

Parameters
NameDescription
location std::string
type ReplicaType

ReplicaSelection(std::string)

Parameter
NameDescription
location std::string

ReplicaSelection(ReplicaType)

Parameter
NameDescription
type ReplicaType

Functions

location() const

Returns
TypeDescription
absl::optional< std::string > const &

type() const

Returns
TypeDescription
absl::optional< ReplicaType > const &