cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::config::ExecutorConfig Class Reference

Class of configuration of executors. More...

#include <msgpack_rpc/config/executor_config.h>

Collaboration diagram for msgpack_rpc::config::ExecutorConfig:

Public Member Functions

 ExecutorConfig ()
 Constructor.
std::size_t num_callback_threads () const noexcept
 Get the number of threads for callbacks.
ExecutorConfignum_callback_threads (std::size_t value)
 Set the number of threads for callbacks.
std::size_t num_transport_threads () const noexcept
 Get the number of threads for transport.
ExecutorConfignum_transport_threads (std::size_t value)
 Set the number of threads for transport.

Private Attributes

std::size_t num_callback_threads_
 Number of threads for callbacks.
std::size_t num_transport_threads_
 Number of threads for transport.

Detailed Description

Class of configuration of executors.

Definition at line 31 of file executor_config.h.

Constructor & Destructor Documentation

◆ ExecutorConfig()

msgpack_rpc::config::ExecutorConfig::ExecutorConfig ( )

Constructor.

Definition at line 27 of file executor_config.cpp.

Member Function Documentation

◆ num_callback_threads() [1/2]

std::size_t msgpack_rpc::config::ExecutorConfig::num_callback_threads ( ) const
nodiscardnoexcept

Get the number of threads for callbacks.

Returns
Number of threads for callbacks.

Definition at line 52 of file executor_config.cpp.

◆ num_callback_threads() [2/2]

ExecutorConfig & msgpack_rpc::config::ExecutorConfig::num_callback_threads ( std::size_t value)

Set the number of threads for callbacks.

Parameters
[in]valueNumber of threads for callbacks.
Returns
This.

Definition at line 39 of file executor_config.cpp.

◆ num_transport_threads() [1/2]

std::size_t msgpack_rpc::config::ExecutorConfig::num_transport_threads ( ) const
nodiscardnoexcept

Get the number of threads for transport.

Returns
Number of threads for transport.

Definition at line 48 of file executor_config.cpp.

◆ num_transport_threads() [2/2]

ExecutorConfig & msgpack_rpc::config::ExecutorConfig::num_transport_threads ( std::size_t value)

Set the number of threads for transport.

Parameters
[in]valueNumber of threads for transport.
Returns
This.

Definition at line 30 of file executor_config.cpp.

Member Data Documentation

◆ num_callback_threads_

std::size_t msgpack_rpc::config::ExecutorConfig::num_callback_threads_
private

Number of threads for callbacks.

Definition at line 71 of file executor_config.h.

◆ num_transport_threads_

std::size_t msgpack_rpc::config::ExecutorConfig::num_transport_threads_
private

Number of threads for transport.

Definition at line 68 of file executor_config.h.


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