WireBridge
WireBridge
Section titled “WireBridge”Kind: class
Source: src/graphrefly/_wire_facade.py:237
Signature
Section titled “Signature”WireBridge(graph: Graph, nodes: _envelope.BridgeNodes, switch: _envelope.Released)Description
Section titled “Description”A wire bridge: the envelope layer between frames and canonical protobuf bytes.
events sends {index, event} facts with a monotonic index. The bridge is
retained until release() or graph close, even without external subscribers.
outbound_bytes sends canonical WireBridgeEnvelope bytes to the transport;
frames and values are what arrived; ack_timeouts is the explicit ingress
of ack-timeout facts; status and issues are graph-visible facts. release()
is idempotent host lifetime cleanup: the bridge and its drivers stop acting.
Attributes
Section titled “Attributes”| Name | Type | Description |
|---|---|---|
events | Node[WireBridgeIndexedEvent] | |
outbound_bytes | Node[bytes] | |
frames | Node[WireEdgeCause] | |
values | Node[bytes] | |
status | Node[WireBridgeStatus] | |
issues | Node[WireBridgeIssue] | |
ack_timeouts | State[WireBridgeAckTimeout] | |
released | bool | Return whether this bridge has been released. |
Methods
Section titled “Methods”release
Section titled “release”release() -> NoneStop the bridge and its ack drivers; later facts change nothing.
Source: src/graphrefly/_wire_facade.py:277