SObjectizer  5.8
Loading...
Searching...
No Matches
so_5::anonymous_namespace{agent.cpp} Namespace Reference

Functions

unsigned int ensure_valid_agent_name_length (std::size_t length)
 
std::string create_anonymous_state_name (const agent_t *agent, const state_t *st)
 
mbox_t make_direct_mbox_with_respect_to_custom_factory (partially_constructed_agent_ptr_t agent_ptr, const agent_tuning_options_t &tuning_options, mbox_t standard_mbox)
 Helper for creation of the direct mbox for an agent.
 
subscription_storage_factory_t detect_subscription_storage_factory_to_use (environment_t &env, const agent_tuning_options_t &tuning_options)
 Helper for selection of subscription storage factory.
 
demand_handler_pfn_t select_demand_handler_for_message (const agent_t &agent, const message_ref_t &msg)
 A helper function to select actual demand handler in dependency of message kind.
 

Variables

const state_t awaiting_deregistration_state (nullptr, "<AWAITING_DEREGISTRATION_AFTER_UNHANDLED_EXCEPTION>")
 A special object for the state in which agent is awaiting for deregistration after unhandled exception.
 
const state_t deadletter_state (nullptr, "<DEADLETTER_STATE>")
 A special object to be used as state for make subscriptions for deadletter handlers.
 

Function Documentation

◆ create_anonymous_state_name()

std::string so_5::anonymous_namespace{agent.cpp}::create_anonymous_state_name ( const agent_t * agent,
const state_t * st )
Since
v.5.4.0

Definition at line 183 of file agent.cpp.

◆ detect_subscription_storage_factory_to_use()

subscription_storage_factory_t so_5::anonymous_namespace{agent.cpp}::detect_subscription_storage_factory_to_use ( environment_t & env,
const agent_tuning_options_t & tuning_options )
nodiscard

Helper for selection of subscription storage factory.

If a factory is specified in tuning_options explicitly then it's used. Otherwise the default subscription storage factory from SObjectizer Environment will be used.

Since
v.5.8.2

Definition at line 759 of file agent.cpp.

◆ ensure_valid_agent_name_length()

unsigned int so_5::anonymous_namespace{agent.cpp}::ensure_valid_agent_name_length ( std::size_t length)
nodiscard

Definition at line 83 of file agent.cpp.

◆ make_direct_mbox_with_respect_to_custom_factory()

mbox_t so_5::anonymous_namespace{agent.cpp}::make_direct_mbox_with_respect_to_custom_factory ( partially_constructed_agent_ptr_t agent_ptr,
const agent_tuning_options_t & tuning_options,
mbox_t standard_mbox )
nodiscard

Helper for creation of the direct mbox for an agent.

If there is a custom direct mbox factory in tuning_options then the return value of that factory is used. Otherwise the standard_mbox is returned.

Definition at line 722 of file agent.cpp.

◆ select_demand_handler_for_message()

demand_handler_pfn_t so_5::anonymous_namespace{agent.cpp}::select_demand_handler_for_message ( const agent_t & agent,
const message_ref_t & msg )
inline

A helper function to select actual demand handler in dependency of message kind.

Since
v.5.5.23

Definition at line 1365 of file agent.cpp.

Variable Documentation

◆ awaiting_deregistration_state

const state_t so_5::anonymous_namespace{agent.cpp}::awaiting_deregistration_state(nullptr, "<AWAITING_DEREGISTRATION_AFTER_UNHANDLED_EXCEPTION>") ( nullptr ,
"<AWAITING_DEREGISTRATION_AFTER_UNHANDLED_EXCEPTION>"  )

A special object for the state in which agent is awaiting for deregistration after unhandled exception.

Since
v.5.4.0

This object will be shared between all agents.

◆ deadletter_state

const state_t so_5::anonymous_namespace{agent.cpp}::deadletter_state(nullptr, "<DEADLETTER_STATE>") ( nullptr ,
"<DEADLETTER_STATE>"  )

A special object to be used as state for make subscriptions for deadletter handlers.

Since
v.5.5.21

This object will be shared between all agents.