client-cpp  0.10.0
kaa::ITransactable Class Referenceabstract

#include <ITransactable.hpp>

+ Inheritance diagram for kaa::ITransactable:

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 ()
 

Detailed Description

Interface to provide transactional behavior.

See Also
kaa::TransactionId

Definition at line 30 of file ITransactable.hpp.

Constructor & Destructor Documentation

virtual kaa::ITransactable::~ITransactable ( )
inlinevirtual

Definition at line 57 of file ITransactable.hpp.

Member Function Documentation

virtual TransactionIdPtr kaa::ITransactable::beginTransaction ( IKaaClientContext context_)
pure virtual

Create new transaction.

Returns
TransactionId object which must be used to submit or rollback the transaction.
Parameters
[in]Kaaclient context

Implemented in kaa::AbstractTransactable< Container >, and kaa::AbstractTransactable< std::list< Event > >.

virtual void kaa::ITransactable::commit ( TransactionIdPtr  trxId,
IKaaClientContext context_ 
)
pure virtual

Finish the transaction.

Parameters
trxIdIdentifier of the transaction which must be finished.
[in]Kaaclient context

Implemented in kaa::EventManager.

virtual void kaa::ITransactable::rollback ( TransactionIdPtr  trxId,
IKaaClientContext context_ 
)
pure virtual

Rollback changes for given transaction.

Parameters
trxIdIdentifier of the transaction which must be removed withot applying changes.
[in]Kaaclient context

Implemented in kaa::AbstractTransactable< Container >, and kaa::AbstractTransactable< std::list< Event > >.


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