Fray Engine
Loading...
Searching...
No Matches
neighbor_monitor.hpp File Reference
#include <chrono>
#include <functional>
#include <map>
#include <optional>
#include <utility>
#include <vector>
#include "outgoing_router.hpp"

Go to the source code of this file.

Classes

class  fray::routing::NeighborMonitor< Key >
 Tracks neighbor liveness and health from what the router hears, and reports state transitions. Not thread safe: all calls and callbacks run on the router (engine message) thread. Never blocks or waits on a neighbor; the clock is injected so time-based rules (3s suspect/degraded, 10s down/unreachable) can be tested. It holds no readiness table itself; the owning router is the source of truth, read through the State callback. More...
struct  fray::routing::NeighborMonitor< Key >::QueueHealth
struct  fray::routing::NeighborMonitor< Key >::HealthReport
struct  fray::routing::NeighborMonitor< Key >::Neighbor

Namespaces

namespace  fray
namespace  fray::routing

Enumerations

enum class  fray::routing::MonitorCommand { fray::routing::probe , fray::routing::ping }
 What the monitor asks its Send callback to transmit: probe = ask for readiness, ping = request a health report. More...