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
21
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)
Definition policy.h:38
@ normal_only
restart actor only when it terminated normally (without error)
Definition policy.h:35
@ never
never restart actor
Definition policy.h:27
@ ask_actor
ask terminated actor whether a new instance should be spawned should_restart() method is used
Definition policy.h:32
@ always
always restart actor
Definition policy.h:25
supervisor_policy_t
how to behave on child actor initialization failures
Definition policy.h:12
@ shutdown_failed
shutdown a failed child and continue initialization
Definition policy.h:19
@ shutdown_self
shutdown supervisor (and all its actors) if a child-actor fails during supervisor initialization phas...
Definition policy.h:16