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

Go to the documentation of this file.
00001 #ifndef __GEMFIRE_CACHELISTENER_H__
00002 #define __GEMFIRE_CACHELISTENER_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 #include "SharedPtr.hpp"
00014 
00019 namespace gemfire {
00020 
00021 class EntryEvent;
00022 class RegionEvent;
00023 
00064 class CPPCACHE_EXPORT CacheListener
00065 : public SharedBase
00066 {
00070 public:
00071 
00075     virtual ~CacheListener();
00076 
00086   virtual void afterCreate( const EntryEvent& event );
00087 
00095   virtual void afterUpdate( const EntryEvent& event );
00096 
00102   virtual void afterInvalidate( const EntryEvent& event );
00103 
00110   virtual void afterDestroy( const EntryEvent& event );
00111 
00120   virtual void afterRegionInvalidate( const RegionEvent& event );
00121 
00130   virtual void afterRegionDestroy( const RegionEvent& event );
00131 
00140   virtual void afterRegionClear( const RegionEvent& event );
00141 
00142 
00149   virtual void afterRegionLive( const RegionEvent& event );
00150 
00165   virtual void close( const RegionPtr& region );
00173   virtual void afterRegionDisconnected( const RegionPtr& region );
00174 protected:
00178     CacheListener();
00179 
00180 private:
00181 // never implemented.
00182     CacheListener( const CacheListener& other );
00183     void operator = (const CacheListener& other );
00184 
00185 };
00186 
00187 } //namespace gemfire
00188 #endif //ifndef __GEMFIRE_CACHELISTENER_H__

GemFire C++ Cache API Documentation