9#include "rotor/supervisor_config.h"
26 using supervisor_config_t::supervisor_config_t;
32 using builder_t =
typename Supervisor::template config_builder_t<Supervisor>;
39 constexpr static const std::uint32_t
LOOP = 1 << 2;
51 return std::move(*
static_cast<builder_t *
>(
this));
58 return std::move(*
static_cast<builder_t *
>(
this));
Basic namespace for all rotor functionalities.
Definition rotor.hpp:21
config_t config
the currently build config
Definition actor_config.h:128
static constexpr const std::uint32_t requirements_mask
bit mask for all required fields
Definition actor_config.h:116
std::uint32_t mask
required fields mask (used for validation)
Definition actor_config.h:131
CRTP supervisor ev config builder.
Definition supervisor_config_ev.h:30
builder_t && loop(struct ev_loop *loop) &&
sets loop
Definition supervisor_config_ev.h:48
static constexpr const std::uint32_t LOOP
bit mask for loop validation
Definition supervisor_config_ev.h:39
static constexpr const std::uint32_t LOOP_OWNERSHIP
bit mask for loop ownership validation
Definition supervisor_config_ev.h:42
builder_t && loop_ownership(bool value) &&
instructs to take ownership on the loop (aka be destroyed by supervisor)
Definition supervisor_config_ev.h:55
static constexpr const std::uint32_t requirements_mask
bit mask for all required fields
Definition supervisor_config_ev.h:45
typename Supervisor::template config_builder_t< Supervisor > builder_t
final builder class
Definition supervisor_config_ev.h:32
libev supervisor config, which holds a pointer to the ev event loop and a loop ownership flag
Definition supervisor_config_ev.h:19
struct ev_loop * loop
a pointer to EV event loop
Definition supervisor_config_ev.h:21
bool loop_ownership
whether loop should be destroyed by supervisor
Definition supervisor_config_ev.h:24
CRTP supervisor config builder.
Definition supervisor_config.h:72
base supervisor config, which holds shutdown timeout value
Definition supervisor_config.h:23