client-cpp
0.10.0
|
#include <AbstractTransactable.hpp>
Public Member Functions | |
virtual TransactionIdPtr | beginTransaction (IKaaClientContext &context_) |
virtual void | rollback (TransactionIdPtr trxId, IKaaClientContext &context_) |
Container & | getContainerByTrxId (TransactionIdPtr trxId, IKaaClientContext &context_) |
virtual | ~AbstractTransactable () |
Public Member Functions inherited from kaa::ITransactable | |
virtual void | commit (TransactionIdPtr trxId, IKaaClientContext &context_)=0 |
virtual | ~ITransactable () |
Protected Member Functions | |
KAA_MUTEX_DECLARE (transactionsGuard_) | |
Protected Attributes | |
std::map< TransactionIdPtr, Container > | transactions_ |
Definition at line 28 of file AbstractTransactable.hpp.
|
inlinevirtual |
Definition at line 67 of file AbstractTransactable.hpp.
|
inlinevirtual |
Create new transaction.
[in] | Kaa | client context |
Implements kaa::ITransactable.
Definition at line 30 of file AbstractTransactable.hpp.
|
inline |
Definition at line 52 of file AbstractTransactable.hpp.
|
protected |
|
inlinevirtual |
Rollback changes for given transaction.
trxId | Identifier of the transaction which must be removed withot applying changes. | |
[in] | Kaa | client context |
Implements kaa::ITransactable.
Definition at line 41 of file AbstractTransactable.hpp.
|
protected |
Definition at line 69 of file AbstractTransactable.hpp.