Pivotal GemFire Native Client Cache Reference  9.0.6
RegionEvent.hpp
Go to the documentation of this file.
1 #ifndef _GEMFIRE_REGIONEVENT_HPP_
2 #define _GEMFIRE_REGIONEVENT_HPP_
3 /*=========================================================================
4  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
5  * This product is protected by U.S. and international copyright
6  * and intellectual property laws. Pivotal products are covered by
7  * more patents listed at http://www.pivotal.io/patents.
8  *=========================================================================
9  */
10 #include "gfcpp_globals.hpp"
11 #include "gf_types.hpp"
12 #include "Region.hpp"
13 #include "CacheableKey.hpp"
14 #include "UserData.hpp"
15 
19 namespace gemfire {
20 
25 {
26  protected:
29  const bool m_remoteOrigin;
31  public:
32 
34  RegionEvent();
36  RegionEvent( const RegionPtr& region,
37  const UserDataPtr& aCallbackArgument,
38  const bool remoteOrigin );
39 
41  ~RegionEvent( );
42 
44  inline RegionPtr getRegion() const
45  {
46  return m_region;
47  }
48 
55  {
56  return m_callbackArgument;
57  }
58 
60  inline bool remoteOrigin() const
61  {
62  return m_remoteOrigin;
63  }
64 
65 
66  private:
67 
68  // never implemented.
69  RegionEvent( const RegionEvent& other );
70  void operator = ( const RegionEvent& other );
71 
72 
73 };
74 
75 }
76 
77 
78 #endif
UserDataPtr getCallbackArgument() const
Returns the callbackArgument passed to the method that generated this event.
Definition: RegionEvent.hpp:54
bool remoteOrigin() const
If the event originated in a remote process, returns true.
Definition: RegionEvent.hpp:60
const UserDataPtr m_callbackArgument
Callback argument for this event, if any.
Definition: RegionEvent.hpp:28
const bool m_remoteOrigin
True if from a remote process.
Definition: RegionEvent.hpp:29
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
Declares region events.
Definition: RegionEvent.hpp:24
const RegionPtr m_region
Region for this event.
Definition: RegionEvent.hpp:27
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
RegionPtr getRegion() const
Return the region this event occurred in.
Definition: RegionEvent.hpp:44

GemFire C++ Cache API Documentation