build-artifacts/win/product/include/gfcpp/CqState.hpp

Go to the documentation of this file.
00001 #ifndef __GEMFIRE_CQ_STATE_H__
00002 #define __GEMFIRE_CQ_STATE_H__
00003 /*=========================================================================
00004  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
00005  * This product is protected by U.S. and international copyright
00006  * and intellectual property laws. Pivotal products are covered by
00007  * more patents listed at http://www.pivotal.io/patents.
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           //corresponding to gemfire.cache.query.internal.CqStateImpl
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 } //namespace gemfire
00073 
00074 #endif //ifndef __GEMFIRE_CQ_STATE_H__

GemFire C++ Cache API Documentation