PrimaryBackupPolicy class

Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets if they are healthy.

And if all of them are unhealthy, then we fallback to a geo localized policy.

Constructors

PrimaryBackupPolicy({GeoPolicy? backupGeoTargets, HealthCheckTargets? primaryTargets, double? trickleTraffic})
PrimaryBackupPolicy.fromJson(Map json_)

Properties

backupGeoTargets ↔ GeoPolicy?
Backup targets provide a regional failover policy for the otherwise global primary targets.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
primaryTargets ↔ HealthCheckTargets?
Endpoints that are health checked before making the routing decision.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trickleTraffic ↔ double?
When serving state is PRIMARY, this field provides the option of sending a small percentage of the traffic to the backup targets.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited