00001 #ifndef __GEMFIRE_CQ_STATE_H__
00002 #define __GEMFIRE_CQ_STATE_H__
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "gfcpp_globals.hpp"
00012 #include "gf_types.hpp"
00013
00018 namespace gemfire
00019 {
00020
00027 class CPPCACHE_EXPORT CqState
00028 {
00029
00030 public:
00031
00032
00033 typedef enum {
00034 STOPPED = 0,
00035 RUNNING = 1,
00036 CLOSED = 2,
00037 CLOSING = 3,
00038 INVALID
00039 } StateType;
00043 const char* toString() const;
00044
00048 bool isRunning() const;
00049
00053 bool isStopped() const;
00054
00058 bool isClosed() const;
00059
00063 bool isClosing() const;
00064 void setState(CqState::StateType state);
00065 CqState::StateType getState();
00066
00067 private:
00068 StateType m_state;
00069
00070 };
00071
00072 }
00073
00074 #endif //ifndef __GEMFIRE_CQ_STATE_H__