SObjectizer  5.8
Loading...
Searching...
No Matches
so_5::disp::active_group Namespace Reference

Active groups dispatcher. More...

Namespaces

namespace  impl
 Active groups dispatcher implemetation details.
 

Classes

class  disp_params_t
 Alias for namespace with traits of event queue. More...
 
class  dispatcher_handle_t
 A handle for active_group dispatcher. More...
 

Functions

SO_5_FUNC dispatcher_handle_t make_dispatcher ( so_5::environment_t &env, const std::string_view data_sources_name_base, disp_params_t params)
 Create an instance of active_group dispatcher.
 
dispatcher_handle_t make_dispatcher (so_5::environment_t &env, const std::string_view data_sources_name_base)
 Create an instance of active_group dispatcher.
 
dispatcher_handle_t make_dispatcher (so_5::environment_t &env)
 Create an instance of active_group dispatcher.
 

Detailed Description

Active groups dispatcher.

Function Documentation

◆ make_dispatcher() [1/3]

SO_5_FUNC dispatcher_handle_t so_5::disp::active_group::make_dispatcher ( so_5::environment_t & env,
const std::string_view data_sources_name_base,
disp_params_t params )

Create an instance of active_group dispatcher.

Usage sample
env,
"request_handler",
// Additional params with specific options for queue's traits.
[]( so_5::disp::active_group::queue_traits::queue_params_t & p ) {
p.lock_factory( so_5::disp::active_obj::queue_traits::simple_lock_factory() );
} ) );
auto coop = env.make_coop(
// The main dispatcher for that coop will be
// this instance of active_group dispatcher.
disp.binder( "request_handler" ) );
Alias for namespace with traits of event queue.
disp_params_t & tune_queue_params(L tunner)
Tuner for queue parameters.
SO_5_FUNC dispatcher_handle_t make_dispatcher(environment_t &env, const std::string_view data_sources_name_base, disp_params_t params)
Create an instance of active_group dispatcher.
Since
v.5.6.0
Parameters
envSObjectizer Environment to work in.
data_sources_name_baseValue for creating names of data sources for run-time monitoring.
paramsParameters for dispatcher.
Examples
so_5/disp/main.cpp.

Definition at line 468 of file active_group/pub.cpp.

◆ make_dispatcher() [2/3]

dispatcher_handle_t so_5::disp::active_group::make_dispatcher ( so_5::environment_t & env)
inline

Create an instance of active_group dispatcher.

Usage sample
auto coop = env.make_coop(
// The main dispatcher for that coop will be
// this instance of active_group dispatcher.
disp.binder( "passive_objects" ) );
Since
v.5.6.0
Parameters
envSObjectizer Environment to work in.

Definition at line 286 of file active_group/pub.hpp.

◆ make_dispatcher() [3/3]

dispatcher_handle_t so_5::disp::active_group::make_dispatcher ( so_5::environment_t & env,
const std::string_view data_sources_name_base )
inline

Create an instance of active_group dispatcher.

Usage sample
env,
"long_req_handlers" );
auto coop = env.make_coop(
// The main dispatcher for that coop will be
// this instance of active_group dispatcher.
disp.binder( "passive_objects" ) );
Since
v.5.6.0
Parameters
envSObjectizer Environment to work in.
data_sources_name_baseValue for creating names of data sources for run-time monitoring.

Definition at line 259 of file active_group/pub.hpp.