Pivotal GemFire Native Client Cache Reference  9.0.6
CqState.hpp
Go to the documentation of this file.
1 #ifndef __GEMFIRE_CQ_STATE_H__
2 #define __GEMFIRE_CQ_STATE_H__
3 /*=========================================================================
4  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
5  * This product is protected by U.S. and international copyright
6  * and intellectual property laws. Pivotal products are covered by
7  * more patents listed at http://www.pivotal.io/patents.
8  *========================================================================
9  */
10 
11 #include "gfcpp_globals.hpp"
12 #include "gf_types.hpp"
13 
18 namespace gemfire
19 {
20 
28 {
29 
30  public:
31 
32  //corresponding to gemfire.cache.query.internal.CqStateImpl
33  typedef enum {
34  STOPPED = 0,
35  RUNNING = 1,
36  CLOSED = 2,
37  CLOSING = 3,
38  INVALID
39  } StateType;
43  const char* toString() const;
44 
48  bool isRunning() const;
49 
53  bool isStopped() const;
54 
58  bool isClosed() const;
59 
63  bool isClosing() const;
64  void setState(CqState::StateType state);
65  CqState::StateType getState();
66 
67  private:
68  StateType m_state;
69 
70 };
71 
72 } //namespace gemfire
73 
74 #endif //ifndef __GEMFIRE_CQ_STATE_H__
This interface gives information on the state of a CqQuery.
Definition: CqState.hpp:27
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

GemFire C++ Cache API Documentation