rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
policy.h
1#pragma once
2
3//
4// Copyright (c) 2019-2022 Ivan Baidakou (basiliscos) (the dot dmol at gmail dot com)
5//
6// Distributed under the MIT Software License
7//
8
9namespace rotor {
10
16 shutdown_self = 1,
17
20};
21
23enum class restart_policy_t {
25 always,
27 never,
28
33
36
39};
40
41} // namespace rotor
Basic namespace for all rotor functionalities.
Definition rotor.hpp:21
restart_policy_t
spawner's actor restart policy
Definition policy.h:23
@ fail_only
restart actor only when it terminated abnormally (with error)
@ normal_only
restart actor only when it terminated normally (without error)
@ never
never restart actor
@ ask_actor
ask terminated actor whether a new instance should be spawned should_restart() method is used
@ always
always restart actor
supervisor_policy_t
how to behave on child actor initialization failures
Definition policy.h:12
@ shutdown_failed
shutdown a failed child and continue initialization
@ shutdown_self
shutdown supervisor (and all its actors) if a child-actor fails during supervisor initialization phas...