14#pragma warning(disable : 4251)
20enum class request_state_t { NONE, SENT, CONFIRMED };
62 void spawn() noexcept;
69 pt::time_duration period = pt::seconds{15};
73 bool escalate =
false;
Basic namespace for all rotor functionalities.
Definition rotor.hpp:21
restart_policy_t
spawner's actor restart policy
Definition policy.h:23
std::function< actor_ptr_t(supervisor_t &, const address_ptr_t &)> factory_t
factory which allows to create actors lazily or on demand
Definition forward.hpp:45
allows automatically restart actors
Definition spawner.h:30
spawner_t && restart_period(const pt::time_duration &) noexcept
minimum amount of time before respawning new actor
spawner_t && restart_policy(restart_policy_t) noexcept
determines whether new actor instance should be spawned
spawner_t && max_attempts(size_t) noexcept
maximum amount of spawned actor instances
spawner_t && escalate_failure(bool=true) noexcept
shutdown actor when the spawned actor crashed
supervisor is responsible for managing actors (workers) lifetime
Definition supervisor.h:69