xorp

TransactionManager::Transaction Class Reference

Transaction class, just a list of operations to be dispatched. More...

#include <transaction.hh>

List of all members.

Public Types

typedef list< OperationOperationList

Public Member Functions

 Transaction (TransactionManager &mgr, const XorpTimer &timeout_timer)
 Transaction (TransactionManager &mgr)
Transactionoperator= (const Transaction &rhs)
void add (const Operation &op)
 Add an operation to list.
void commit ()
 Dispatch all operations on list.
void flush ()
 Flush all operations on list.
void defer_timeout ()
 Defer timeout by TransactionManagers timeout interval.
void cancel_timeout ()
 Cancel timeout timer.
OperationList & operations ()
 Get the list of operations.
uint32_t size () const
 Get the length of the operations list.

Private Attributes

TransactionManager_mgr
OperationList _ops
XorpTimer _timeout_timer
uint32_t _op_count

Detailed Description

Transaction class, just a list of operations to be dispatched.

It is defined here so classes derived from TransactionManager can operate, eg sort operations in list, before committing transaction.


Member Function Documentation

uint32_t TransactionManager::Transaction::size ( ) const [inline]

Get the length of the operations list.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations