|
using | builder_t = typename Supervisor::template config_builder_t< Supervisor > |
| final builder class
|
|
using | parent_t = supervisor_config_builder_t< Supervisor > |
| parent config builder
|
|
using | strand_ptr_t = supervisor_config_asio_t::strand_ptr_t |
| alias for strand smart pointer
|
|
using | parent_t = actor_config_builder_t< Supervisor > |
| parent config builder
|
|
using | builder_t = typename Supervisor::template config_builder_t< Supervisor > |
| final builder class
|
|
using | parent_t = actor_config_builder_t< Supervisor > |
| parent config builder
|
|
using | builder_t = typename Actor::template config_builder_t< Supervisor > |
| final builder class
|
|
using | config_t = typename Actor::config_t |
| final config class
|
|
using | actor_ptr_t = intrusive_ptr_t< Supervisor > |
| intrusive pointer to actor
|
|
using | install_action_t = std::function< void(actor_ptr_t &)> |
| actor post-constructor callback type
|
|
|
builder_t && | strand (strand_ptr_t &strand) && |
| strand setter
|
|
builder_t && | guard_context (bool value) && |
| instructs to take ownership of the io_context
|
|
builder_t && | policy (supervisor_policy_t policy_) &&noexcept |
| defines actor's startup policy
|
|
builder_t && | create_registry (bool value=true) &&noexcept |
| instructs supervisor to create an registry
|
|
builder_t && | synchronize_start (bool value=true) &&noexcept |
| instructs supervisor to synchronize start on it's children actors
|
|
builder_t && | registry_address (const address_ptr_t &value) &&noexcept |
| injects external registry address
|
|
builder_t && | inbound_queue_size (size_t value) && |
| initial queue size for inbound messages. Makes sense only for root/leader supervisor
|
|
builder_t && | poll_duration (const pt::time_duration &value) && |
| how much time spend in active inbound queue polling
|
|
builder_t && | shutdown_flag (const std::atomic_bool &value, const pt::time_duration &interval) && |
| atomic shutdown flag and the period for polling it
|
|
virtual bool | validate () noexcept |
| checks whether config is valid, i.e. all necessary fields are set
|
|
| actor_config_builder_t (install_action_t &&action_, supervisor_t *supervisor_) |
| ctor with install action and raw pointer to supervisor
|
|
| actor_config_builder_t (install_action_t &&action_, system_context_t &system_context_) |
| ctor with install action and pointer to system_context_t
|
|
builder_t && | timeout (const pt::time_duration &timeout) &&noexcept |
| setter for init and shutdown timeout
|
|
builder_t && | init_timeout (const pt::time_duration &timeout) &&noexcept |
| setter for init timeout
|
|
builder_t && | shutdown_timeout (const pt::time_duration &timeout) &&noexcept |
| setter for shutdown timeout
|
|
builder_t && | spawner_address (const address_ptr_t &value) &&noexcept |
| spawner address
|
|
builder_t && | escalate_failure (bool value=true) &&noexcept |
| shutdown supervisor upon actor failure
|
|
builder_t && | autoshutdown_supervisor (bool value=true) &&noexcept |
| shutdown supervisor when an actor is down
|
|
actor_ptr_t | finish () && |
| constructs actor from the current config
|
|
|
static constexpr const std::uint32_t | STRAND = 1 << 2 |
| bit mask for strand validation
|
|
static constexpr const std::uint32_t | requirements_mask = parent_t::requirements_mask | STRAND |
| bit mask for all required fields
|
|
static constexpr const std::uint32_t | INIT_TIMEOUT |
| bit mask for init timeout validation
|
|
static constexpr const std::uint32_t | SHUTDOWN_TIMEOUT |
| bit mask for shutdown timeout validation
|
|
static constexpr const std::uint32_t | requirements_mask |
| bit mask for all required fields
|
|
template<typename Supervisor>
struct rotor::asio::supervisor_config_asio_builder_t< Supervisor >
CRTP supervisor asio config builder.