ReplicaNode class
Represents a replica node in the replication topology.
Constructors
- ReplicaNode({required String id, String? endpoint, ReplicaRole role = ReplicaRole.slave, ReplicaStatus status = ReplicaStatus.disconnected, DateTime? lastReplicatedAt, int pendingChanges = 0})
- Creates a ReplicaNode.
Properties
- endpoint → String?
-
The endpoint URL for connecting to this replica.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for this node.
final
- lagMs → int?
-
The replication lag in milliseconds (time since last replication).
no setter
- lastReplicatedAt ↔ DateTime?
-
Last known replication timestamp on this node.
getter/setter pair
- pendingChanges ↔ int
-
Number of pending changes to replicate to this node.
getter/setter pair
- role → ReplicaRole
-
The role of this node.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ ReplicaStatus
-
Current status of the node.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited