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

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


Detailed Description

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

This class encapsulates events that occur for an entry in a region.

Public Member Functions

 EntryEvent (IRegion< TKey, TValue >^region, TKey key, TValue oldValue, TValue newValue, Object^ aCallbackArgument, bool remoteOrigin)

Protected Member Functions

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

Properties

Object^  CallbackArgument [get]
TKey Key [get]
TValue NewValue [get]
TValue OldValue [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::EntryEvent< TKey, TValue >::EntryEvent ( IRegion< TKey, TValue >^  region,
TKey  key,
TValue  oldValue,
TValue  newValue,
Object^   aCallbackArgument,
bool  remoteOrigin 
)

Constructor to create an EntryEvent for the given region.


Member Function Documentation

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

Internal cleanup function invoked by dispose/finalizer.

void GemStone::GemFire::Cache::Generic::Internal::UMWrap< gemfire::EntryEvent >::SetPtr ( gemfire::EntryEvent *  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::EntryEvent< 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.

template<class TKey, class TValue>
TKey GemStone::GemFire::Cache::Generic::EntryEvent< TKey, TValue >::Key [get]

Returns the key this event describes.

template<class TKey, class TValue>
TValue GemStone::GemFire::Cache::Generic::EntryEvent< TKey, TValue >::NewValue [get]

Return the updated value from this event. If the event is a destroy or invalidate operation, then the new value will be NULL.

template<class TKey, class TValue>
TValue GemStone::GemFire::Cache::Generic::EntryEvent< TKey, TValue >::OldValue [get]

Returns 'null' if there was no value in the cache. If the prior state of the entry was invalid, or non-existent/destroyed, then the old value will be 'null'.

bool GemStone::GemFire::Cache::Generic::Internal::UMWrap< gemfire::EntryEvent >::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::EntryEvent< TKey, TValue >::Region [get]

Return the region this event occurred in.

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

If the event originated in a remote process, returns true.


GemFire C++ Cache .NET API Documentation