00001 #ifndef __GEMFIRE_CACHEWRITER_H__
00002 #define __GEMFIRE_CACHEWRITER_H__
00003
00004
00005
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
00120
00121
00122
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
00150 CacheWriter(const CacheWriter& other);
00151 void operator = ( const CacheWriter& other );
00152
00153 };
00154
00155 }
00156
00157 #endif
00158