|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Single transaction operation with execute and rollback capabilities. More...
#include <data_consistency.h>

Public Types | |
| using | execute_func_t = std::function<common::VoidResult()> |
| using | rollback_func_t = std::function<common::VoidResult()> |
Public Member Functions | |
| transaction_operation (const std::string &name, execute_func_t execute_func, rollback_func_t rollback_func=nullptr) | |
| std::string | name () const |
| bool | is_executed () const |
| common::VoidResult | execute () |
| bool | rollback () |
Private Attributes | |
| std::string | name_ |
| execute_func_t | execute_func_ |
| rollback_func_t | rollback_func_ |
| bool | executed_ |
Single transaction operation with execute and rollback capabilities.
Definition at line 120 of file data_consistency.h.
| using kcenon::monitoring::transaction_operation::execute_func_t = std::function<common::VoidResult()> |
Definition at line 122 of file data_consistency.h.
| using kcenon::monitoring::transaction_operation::rollback_func_t = std::function<common::VoidResult()> |
Definition at line 123 of file data_consistency.h.
|
inline |
Definition at line 125 of file data_consistency.h.
|
inline |
Definition at line 136 of file data_consistency.h.
References execute_func_, and executed_.
|
inline |
|
inline |
|
inline |
Definition at line 148 of file data_consistency.h.
References rollback_func_.
|
private |
Definition at line 158 of file data_consistency.h.
Referenced by execute().
|
private |
Definition at line 160 of file data_consistency.h.
Referenced by execute(), and is_executed().
|
private |
Definition at line 157 of file data_consistency.h.
Referenced by name().
|
private |
Definition at line 159 of file data_consistency.h.
Referenced by rollback().