blob: 3bce23046e2d1a0c320600af92fbb6d9a7e0768f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef tests_storePerftools_asyncPerf_TransactionAsyncContext_h_
#define tests_storePerftools_asyncPerf_TransactionAsyncContext_h_
#include "MockTransactionContext.h"
#include "qpid/asyncStore/AsyncOperation.h"
#include "qpid/broker/BrokerAsyncContext.h"
namespace tests {
namespace storePerftools {
namespace asyncPerf {
class TransactionAsyncContext: public qpid::broker::BrokerAsyncContext {
public:
TransactionAsyncContext(MockTransactionContext* tc,
const qpid::asyncStore::AsyncOperation::opCode op);
virtual ~TransactionAsyncContext();
qpid::asyncStore::AsyncOperation::opCode getOpCode() const;
const char* getOpStr() const;
MockTransactionContext* getTransactionContext() const;
void destroy();
protected:
MockTransactionContext* m_tc;
const qpid::asyncStore::AsyncOperation::opCode m_op;
};
}}} // namespace tests::storePerftools::asyncPerf
#endif // tests_storePerftools_asyncPerf_TransactionAsyncContext_h_
|