H:/gfcppsancout/product/include/gfcpp/CacheWriter.hpp

Go to the documentation of this file.
00001 #ifndef __GEMFIRE_CACHEWRITER_H__
00002 #define __GEMFIRE_CACHEWRITER_H__
00003 /*=========================================================================
00004  * (c) Copyright 2002-2007, GemStone Systems, Inc. All Rights Reserved.
00005  * 1260 NW Waterhouse Ave., Suite 200,  Beaverton, OR 97006
00006  *========================================================================
00007  */
00008 
00009 #include "gfcpp_globals.hpp"
00010 #include "gf_types.hpp"
00011 
00017 namespace gemfire {
00018 
00019 class EntryEvent;
00020 class RegionEvent;
00067 class CPPCACHE_EXPORT CacheWriter
00068 : public SharedBase
00069 {
00070 
00071 public:
00072 
00073 
00088   virtual bool beforeUpdate( const EntryEvent& event );
00089 
00103   virtual bool beforeCreate( const EntryEvent& event );
00104 
00105 
00115   virtual bool beforeDestroy( const EntryEvent& event );
00116 
00117 
00118 
00119   /*@brief called before this region is destroyed
00120    * @param event EntryEvent denotes the event object associated with destroying the region
00121    *
00122    * @see Region::destroyRegion
00123    */
00124   virtual bool beforeRegionDestroy( const RegionEvent& event );
00125 
00139   virtual void close( const RegionPtr& rp );
00140 
00141   virtual ~CacheWriter();
00142 
00143 protected:
00144 
00145   CacheWriter();
00146 
00147 private:
00148 
00149   // never implemented.
00150   CacheWriter(const CacheWriter& other);
00151   void operator = ( const CacheWriter& other );
00152 
00153 };
00154 
00155 } //namespace gemfire
00156 
00157 #endif
00158 

GemFire C++ Cache API Documentation