00001 #ifndef __GEMFIRE_CACHEWRITER_H__
00002 #define __GEMFIRE_CACHEWRITER_H__
00003
00004
00005
00006
00007
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
00121
00122
00123
00124
00125 virtual bool beforeRegionClear( const RegionEvent& event );
00126
00127
00128
00129
00130
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
00158 CacheWriter(const CacheWriter& other);
00159 void operator = ( const CacheWriter& other );
00160
00161 };
00162
00163 }
00164
00165 #endif
00166