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

Go to the source code of this file.

Classes

class  fray::routing::OutgoingRouter< Key, Frame >
 The router thread's single source of truth about which neighbors are ready, plus the messages waiting for them. Nothing here is thread safe: only the router thread may touch it. Nothing waits on a neighbor either. A message for a neighbor that is not ready stays in its queue until the neighbor says it is ready, its time to live runs out, or the neighbor is declared down and its queue is discarded. More...
struct  fray::routing::OutgoingRouter< Key, Frame >::QueueHealth
struct  fray::routing::OutgoingRouter< Key, Frame >::Entry

Namespaces

namespace  fray
namespace  fray::routing

Enumerations

enum class  fray::routing::NeighborState {
  fray::routing::unknown , fray::routing::probing , fray::routing::ready , fray::routing::suspect ,
  fray::routing::degraded , fray::routing::down , fray::routing::unreachable
}
 Readiness of a neighbor process as seen by the router. unknown: nothing known yet; probing: readiness requested, no answer yet; ready: messages are delivered at once; suspect: quiet for a while; degraded: heard from but its health looks bad (stalled heartbeat, stuck queue or no report); down: silent too long, its queue is discarded; unreachable: never answered the initial probe. Only ready delivers immediately; every other state queues messages. More...