Pivotal GemFire Native Client Cache Reference  9.0.6
CacheTransactionManager.hpp
1 #ifndef CACHETRANSACTIONMANAGER_H_
2 #define CACHETRANSACTIONMANAGER_H_
3 
4 /*=========================================================================
5  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
6  * This product is protected by U.S. and international copyright
7  * and intellectual property laws. Pivotal products are covered by
8  * more patents listed at http://www.pivotal.io/patents.
9  *
10  * The specification of function behaviors is found in the corresponding .cpp file.
11  *
12  *========================================================================
13  */
14 
15 //#### Warning: DO NOT directly include Region.hpp, include Cache.hpp instead.
16 
17 #include "gfcpp_globals.hpp"
18 #include "gf_types.hpp"
19 
20 
21 namespace gemfire {
22 
23 class CPPCACHE_EXPORT CacheTransactionManager: public gemfire::SharedBase {
24 public:
31  virtual void begin() = 0;
32 
59  virtual void commit() = 0;
60 
69  virtual void rollback() = 0;
70 
80  virtual TransactionIdPtr suspend() = 0;
81 
94  virtual void resume(TransactionIdPtr transactionId) = 0;
95 
106  virtual bool isSuspended(TransactionIdPtr transactionId) = 0;
107 
125  virtual bool tryResume(TransactionIdPtr transactionId) = 0;
126 
147  virtual bool tryResume(TransactionIdPtr transactionId, int32_t waitTimeInMilliSec) = 0;
148 
160  virtual bool exists(TransactionIdPtr transactionId) = 0;
161 
168  virtual TransactionIdPtr getTransactionId() = 0;
169 
176  virtual bool exists() = 0;
177 
178 protected:
179  CacheTransactionManager();
180  virtual ~CacheTransactionManager();
181 };
182 
183 }
184 
185 #endif /* CACHETRANSACTIONMANAGER_H_ */
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:31

GemFire C++ Cache API Documentation