userver: components::SingleThreadedTaskProcessors Class Reference
Loading...
Searching...
No Matches
components::SingleThreadedTaskProcessors Class Referencefinal

#include <userver/components/single_threaded_task_processors.hpp>

Detailed Description

Component that starts multiple single threaded task processors.

Usefull to process tasks in a single threaded third-party libraries (for example in Python/JS interpreters).

Static options:

See "Static task_processor options" at components::ManagerControllerComponent for options description and sample.

Definition at line 32 of file single_threaded_task_processors.hpp.

+ Inheritance diagram for components::SingleThreadedTaskProcessors:
+ Collaboration diagram for components::SingleThreadedTaskProcessors:

Public Member Functions

 SingleThreadedTaskProcessors (const ComponentConfig &config, const ComponentContext &)
 
engine::SingleThreadedTaskProcessorsPoolGetPool ()
 
- Public Member Functions inherited from components::LoggableComponentBase
 LoggableComponentBase (const ComponentConfig &, const ComponentContext &)
 
 LoggableComponentBase (LoggableComponentBase &&)=delete
 
 LoggableComponentBase (const LoggableComponentBase &)=delete
 
 ~LoggableComponentBase () override=default
 
ComponentHealth GetComponentHealth () const override
 
void OnLoadingCancelled () override
 
void OnAllComponentsLoaded () override
 
void OnAllComponentsAreStopping () override
 

Static Public Member Functions

static yaml_config::Schema GetStaticConfigSchema ()
 
- Static Public Member Functions inherited from components::LoggableComponentBase
static yaml_config::Schema GetStaticConfigSchema ()
 

Static Public Attributes

static constexpr std::string_view kName = "single-threaded-task-processors"
 The default name of components::SingleThreadedTaskProcessors.
 

Member Function Documentation

◆ GetPool()

engine::SingleThreadedTaskProcessorsPool & components::SingleThreadedTaskProcessors::GetPool ( )
inline

Definition at line 43 of file single_threaded_task_processors.hpp.


The documentation for this class was generated from the following file: