client-cpp
0.10.0
|
#include <ITransactable.hpp>
Public Member Functions | |
virtual TransactionIdPtr | beginTransaction (IKaaClientContext &context_)=0 |
virtual void | commit (TransactionIdPtr trxId, IKaaClientContext &context_)=0 |
virtual void | rollback (TransactionIdPtr trxId, IKaaClientContext &context_)=0 |
virtual | ~ITransactable () |
Interface to provide transactional behavior.
Definition at line 30 of file ITransactable.hpp.
|
inlinevirtual |
Definition at line 57 of file ITransactable.hpp.
|
pure virtual |
Create new transaction.
[in] | Kaa | client context |
Implemented in kaa::AbstractTransactable< Container >, and kaa::AbstractTransactable< std::list< Event > >.
|
pure virtual |
Finish the transaction.
trxId | Identifier of the transaction which must be finished. | |
[in] | Kaa | client context |
Implemented in kaa::EventManager.
|
pure virtual |
Rollback changes for given transaction.
trxId | Identifier of the transaction which must be removed withot applying changes. | |
[in] | Kaa | client context |
Implemented in kaa::AbstractTransactable< Container >, and kaa::AbstractTransactable< std::list< Event > >.