RegisteredNode class

A node currently registered with the Hub, with its live connection and liveness bookkeeping.

Constructors

RegisteredNode({required NodeDescriptor descriptor, required HubPeer peer, required DateTime lastSeen, int lastHeartbeatSeq = 0, int activeSessions = 0})
Creates a registered-node record.

Properties

activeSessions int
Number of sessions currently routed to this node.
getter/setter pair
descriptor NodeDescriptor
The node's public descriptor (identity, platform, labels, capabilities, online flag).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id NodeId
The node's id.
no setter
lastHeartbeatSeq int
The last accepted heartbeat sequence number (monotonic).
getter/setter pair
lastSeen DateTime
When the Hub last heard from the node.
getter/setter pair
peer ↔ HubPeer
The peer connection serving this node.
getter/setter pair
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
toString() String
A string representation of this object.
inherited

Operators

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