boost::asio supervisor config, which holds pointer to strand More...
#include <supervisor_config_asio.h>
Public Types | |
| using | strand_t = boost::asio::io_context::strand |
| alias for boost::asio strand type | |
| using | strand_ptr_t = std::shared_ptr<strand_t> |
| type for strand shared pointer | |
| Public Types inherited from rotor::actor_config_t | |
| using | plugins_constructor_t = std::function<plugin_storage_ptr_t()> |
constructs plugin_storage_ptr_t (type) | |
Public Attributes | |
| strand_ptr_t | strand |
| boost::asio execution strand (shared pointer) | |
| bool | guard_context = false |
| should supervisor take ownership on the io_context | |
| Public Attributes inherited from rotor::supervisor_config_t | |
| supervisor_policy_t | policy = supervisor_policy_t::shutdown_self |
| how to behave if child-actor fails | |
| bool | create_registry = false |
| whether the registry actor should be instantiated by supervisor | |
| bool | synchronize_start = false |
| whether supervisor should wait until all actors confirmed initialization, and only then send start signal to all of them | |
| address_ptr_t | registry_address |
| use the specified address of a registry | |
| size_t | inbound_queue_size = 64 |
| initial queue size for inbound messages. Makes sense only for root/leader supervisor | |
| pt::time_duration | poll_duration = pt::millisec{1} |
| How much time it will spend in polling inbound queue before switching into sleep mode (i.e. waiting external messages). | |
| const std::atomic_bool * | shutdown_flag = nullptr |
| pointer to atomic shutdown flag for polling (optional) | |
| pt::time_duration | shutdown_poll_frequency = pt::millisec{100} |
| the period for checking atomic shutdown flag | |
| Public Attributes inherited from rotor::actor_config_t | |
| plugins_constructor_t | plugins_constructor |
constructs plugin_storage_ptr_t | |
| supervisor_t * | supervisor |
raw pointer to supervisor_t | |
| pt::time_duration | init_timeout |
| max actor initialization time | |
| pt::time_duration | shutdown_timeout |
| max actor shutdown time | |
| address_ptr_t | spawner_address |
| address of the spawner | |
| bool | escalate_failure = false |
| shutdown supervisor upon child failure | |
| bool | autoshutdown_supervisor = false |
| shutdown supervisor upon child down | |
Additional Inherited Members | |
| Public Member Functions inherited from rotor::supervisor_config_t | |
| actor_config_t (supervisor_t *supervisor_) | |
| constructs actor_config_t from raw supervisor pointer | |
| Public Member Functions inherited from rotor::actor_config_t | |
| actor_config_t (supervisor_t *supervisor_) | |
| constructs actor_config_t from raw supervisor pointer | |
boost::asio supervisor config, which holds pointer to strand