Fray Engine
Loading...
Searching...
No Matches
fray::routing::NeighborMonitor< Key >::Neighbor Struct Reference

Public Attributes

Clock::time_point since
Clock::time_point lastHeard
std::optional< Clock::time_point > healthExpectedSince
std::optional< HealthReport > health
Clock::time_point healthReceived
Clock::time_point heartbeatChanged
Clock::time_point queueProgress

Detailed Description

template<class Key>
struct fray::routing::NeighborMonitor< Key >::Neighbor

Bookkeeping for one watched neighbor.

Definition at line 158 of file neighbor_monitor.hpp.

Member Data Documentation

◆ health

template<class Key>
std::optional<HealthReport> fray::routing::NeighborMonitor< Key >::Neighbor::health

Latest health report, if any.

Definition at line 167 of file neighbor_monitor.hpp.

◆ healthExpectedSince

template<class Key>
std::optional<Clock::time_point> fray::routing::NeighborMonitor< Key >::Neighbor::healthExpectedSince

When it first announced readiness; after 3s without a report it counts as degraded. Empty until then.

Definition at line 165 of file neighbor_monitor.hpp.

◆ healthReceived

template<class Key>
Clock::time_point fray::routing::NeighborMonitor< Key >::Neighbor::healthReceived

When the latest report arrived.

Definition at line 169 of file neighbor_monitor.hpp.

◆ heartbeatChanged

template<class Key>
Clock::time_point fray::routing::NeighborMonitor< Key >::Neighbor::heartbeatChanged

When the reported heartbeat value last changed.

Definition at line 171 of file neighbor_monitor.hpp.

◆ lastHeard

template<class Key>
Clock::time_point fray::routing::NeighborMonitor< Key >::Neighbor::lastHeard

When a message was last heard from it.

Definition at line 163 of file neighbor_monitor.hpp.

◆ queueProgress

template<class Key>
Clock::time_point fray::routing::NeighborMonitor< Key >::Neighbor::queueProgress

When the neighbor last made queue progress (or had nothing queued).

Definition at line 173 of file neighbor_monitor.hpp.

◆ since

template<class Key>
Clock::time_point fray::routing::NeighborMonitor< Key >::Neighbor::since

When monitoring (or probing) began.

Definition at line 161 of file neighbor_monitor.hpp.


The documentation for this struct was generated from the following file: