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

Go to the documentation of this file.
00001 #ifndef __GEMFIRE_CACHEWRITER_H__
00002 #define __GEMFIRE_CACHEWRITER_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 
00019 namespace gemfire {
00020 
00021 class EntryEvent;
00022 class RegionEvent;
00069 class CPPCACHE_EXPORT CacheWriter
00070 : public SharedBase
00071 {
00072 
00073 public:
00074 
00075 
00090   virtual bool beforeUpdate( const EntryEvent& event );
00091 
00105   virtual bool beforeCreate( const EntryEvent& event );
00106 
00107 
00117   virtual bool beforeDestroy( const EntryEvent& event );
00118 
00119 
00120   /*@brief called before this region is cleared
00121    * @param event EntryEvent denotes the event object associated with clearing the region
00122    *
00123    * @see Region::clear
00124    */
00125   virtual bool beforeRegionClear( const RegionEvent& event );
00126 
00127   /*@brief called before this region is destroyed
00128    * @param event EntryEvent denotes the event object associated with destroying the region
00129    *
00130    * @see Region::destroyRegion
00131    */
00132   virtual bool beforeRegionDestroy( const RegionEvent& event );
00133 
00147   virtual void close( const RegionPtr& rp );
00148 
00149   virtual ~CacheWriter();
00150 
00151 protected:
00152 
00153   CacheWriter();
00154 
00155 private:
00156 
00157   // never implemented.
00158   CacheWriter(const CacheWriter& other);
00159   void operator = ( const CacheWriter& other );
00160 
00161 };
00162 
00163 } //namespace gemfire
00164 
00165 #endif
00166 

GemFire C++ Cache API Documentation