Retry executor registry.
More...
#include <fault_tolerance_manager.h>
Retry executor registry.
Definition at line 314 of file fault_tolerance_manager.h.
◆ clear()
| void kcenon::monitoring::retry_executor_registry::clear |
( |
| ) |
|
|
inline |
◆ get_all_names()
| std::vector< std::string > kcenon::monitoring::retry_executor_registry::get_all_names |
( |
| ) |
const |
|
inline |
◆ get_executor()
template<typename T >
| std::shared_ptr< retry_executor< T > > kcenon::monitoring::retry_executor_registry::get_executor |
( |
const std::string & | name | ) |
|
|
inline |
Definition at line 323 of file fault_tolerance_manager.h.
323 {
324 std::lock_guard<std::mutex> lock(
mutex_);
327 return std::any_cast<std::shared_ptr<retry_executor<T>>>(it->second);
328 }
329 return nullptr;
330 }
References mutex_, and registry_.
◆ register_executor()
template<typename T >
| void kcenon::monitoring::retry_executor_registry::register_executor |
( |
const std::string & | name, |
|
|
std::shared_ptr< retry_executor< T > > | executor ) |
|
inline |
◆ remove_executor()
| void kcenon::monitoring::retry_executor_registry::remove_executor |
( |
const std::string & | name | ) |
|
|
inline |
◆ mutex_
| std::mutex kcenon::monitoring::retry_executor_registry::mutex_ |
|
mutableprivate |
◆ registry_
| std::unordered_map<std::string, std::any> kcenon::monitoring::retry_executor_registry::registry_ |
|
private |
The documentation for this class was generated from the following file: