E:/gfcppsancout/product/include/gfcpp/CacheListener.hpp

Go to the documentation of this file.
00001 #ifndef __GEMFIRE_CACHELISTENER_H__
00002 #define __GEMFIRE_CACHELISTENER_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 #include "SharedPtr.hpp"
00012 
00017 namespace gemfire {
00018 
00019 class EntryEvent;
00020 class RegionEvent;
00021 
00062 class CPPCACHE_EXPORT CacheListener
00063 : public SharedBase
00064 {
00068 public:
00069 
00073     virtual ~CacheListener();
00074 
00084   virtual void afterCreate( const EntryEvent& event );
00085 
00093   virtual void afterUpdate( const EntryEvent& event );
00094 
00100   virtual void afterInvalidate( const EntryEvent& event );
00101 
00108   virtual void afterDestroy( const EntryEvent& event );
00109 
00118   virtual void afterRegionInvalidate( const RegionEvent& event );
00119 
00128   virtual void afterRegionDestroy( const RegionEvent& event );
00129 
00138   virtual void afterRegionClear( const RegionEvent& event );
00139 
00140 
00147   virtual void afterRegionLive( const RegionEvent& event );
00148 
00163   virtual void close( const RegionPtr& region );
00171   virtual void afterRegionDisconnected( const RegionPtr& region );
00172 protected:
00176     CacheListener();
00177 
00178 private:
00179 // never implemented.
00180     CacheListener( const CacheListener& other );
00181     void operator = (const CacheListener& other );
00182 
00183 };
00184 
00185 } //namespace gemfire
00186 #endif //ifndef __GEMFIRE_CACHELISTENER_H__

GemFire C++ Cache API Documentation