DatabaseStatusReplica class

Replica

Implemented types

Constructors

DatabaseStatusReplica({required int index, required String role, required bool healthy, bool? replicating, double? lagSeconds})
DatabaseStatusReplica.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
healthy bool
Whether the replica is healthy.
final
index int
Member index within the database. Read role for which member accepts writes: a failover moves the primary without renumbering the indexes.
final
lagSeconds double?
Replication lag in seconds (null for primary). Also null against replicating: true, for a member that is streaming but whose engine printed no numeric lag.
final
replicating bool?
Whether the engine reports this member's replication stream as up. Null when no reading was taken: a primary has no stream to report, and a member that is not healthy, or whose probe did not answer, has none yet. healthy is a reachability probe of the member itself and says nothing about replication, so a healthy member may still not be replicating.
final
role String
Member role. Possible values: primary (accepts reads and writes), replica (read-only follower), unknown (placement not established; reported while a transition is moving or restarting the topology, so no member can be named the write target).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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