OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
cbdc::parsec::agent::runner::factory< T > Class Template Reference

Runner factory for agents to intiantiate new runners of a particular type while only worrying about the runner interface. More...

#include <interface.hpp>

Static Public Member Functions

static auto create (std::shared_ptr< logging::log > logger, cbdc::parsec::config cfg, runtime_locking_shard::value_type function, parameter_type param, bool is_readonly_run, runner::interface::run_callback_type result_callback, runner::interface::try_lock_callback_type try_lock_callback, std::shared_ptr< secp256k1_context > secp, std::shared_ptr< thread_pool > t_pool, runner::interface::ticket_number_type ticket_number) -> std::unique_ptr< runner::interface >
 Construct a new runner of type T.
 

Detailed Description

template<class T>
class cbdc::parsec::agent::runner::factory< T >

Runner factory for agents to intiantiate new runners of a particular type while only worrying about the runner interface.

Template Parameters
Trunner implementation to construct.

Definition at line 139 of file parsec/agent/runners/interface.hpp.

Member Function Documentation

◆ create()

template<class T >
static auto cbdc::parsec::agent::runner::factory< T >::create ( std::shared_ptr< logging::log > logger,
cbdc::parsec::config cfg,
runtime_locking_shard::value_type function,
parameter_type param,
bool is_readonly_run,
runner::interface::run_callback_type result_callback,
runner::interface::try_lock_callback_type try_lock_callback,
std::shared_ptr< secp256k1_context > secp,
std::shared_ptr< thread_pool > t_pool,
runner::interface::ticket_number_type ticket_number ) -> std::unique_ptr<runner::interface>
inlinestatic

Construct a new runner of type T.

Returns
new runner.

Definition at line 144 of file parsec/agent/runners/interface.hpp.


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