GemStone::GemFire::Cache::Generic::RegionEvent< TKey, TValue > Class Template Reference

Inherits GemStone::GemFire::Cache::Generic::Internal::UMWrap< gemfire::RegionEvent >.


Detailed Description

template<class TKey, class TValue>
class GemStone::GemFire::Cache::Generic::RegionEvent< TKey, TValue >

This class encapsulates events that occur for a region.

Public Member Functions

 RegionEvent (IRegion< TKey, TValue >^region, Object^ aCallbackArgument, bool remoteOrigin)

Protected Member Functions

void InternalCleanup ()
void SetPtr (gemfire::RegionEvent *nativeptr, bool own)

Properties

Object^  CallbackArgument [get]
bool Own [get, set]
IRegion< TKey, TValue >^ Region [get]
bool RemoteOrigin [get]

Constructor & Destructor Documentation

template<class TKey, class TValue>
GemStone::GemFire::Cache::Generic::RegionEvent< TKey, TValue >::RegionEvent ( IRegion< TKey, TValue >^  region,
Object^   aCallbackArgument,
bool  remoteOrigin 
)

Constructor to create a RegionEvent for a given region.

Exceptions:
IllegalArgumentException if region is null


Member Function Documentation

void GemStone::GemFire::Cache::Generic::Internal::UMWrap< gemfire::RegionEvent >::InternalCleanup (  )  [inline, protected, inherited]

Internal cleanup function invoked by dispose/finalizer.

void GemStone::GemFire::Cache::Generic::Internal::UMWrap< gemfire::RegionEvent >::SetPtr ( gemfire::RegionEvent *  nativeptr,
bool  own 
) [inline, protected, inherited]

Used to set the native pointer to a new object. This should only be used when you know that the underlying object is NULL or you do not own it.


Property Documentation

template<class TKey, class TValue>
Object^ GemStone::GemFire::Cache::Generic::RegionEvent< TKey, TValue >::CallbackArgument [get]

Returns the callbackArgument passed to the method that generated this event. See the Region interface methods that take a callbackArgument parameter.

bool GemStone::GemFire::Cache::Generic::Internal::UMWrap< gemfire::RegionEvent >::Own [get, set, protected, inherited]

Get or set the ownership of this object.

Returns:
True if the native object is owned by this object.

template<class TKey, class TValue>
IRegion< TKey, TValue>^ GemStone::GemFire::Cache::Generic::RegionEvent< TKey, TValue >::Region [get]

Return the region this event occurred in.

template<class TKey, class TValue>
bool GemStone::GemFire::Cache::Generic::RegionEvent< TKey, TValue >::RemoteOrigin [get]

Returns true if the event originated in a remote process.


GemFire C++ Cache .NET API Documentation