gemfire::ManagedCqListenerGeneric Class Reference


Detailed Description

Wraps the managed GemStone.GemFire.Cache.ICacheListener object and implements the native gemfire::CacheListener interface.

Public Member Functions

virtual void close ()
 ManagedCqListenerGeneric (Object^ userptr)
virtual void onError (const gemfire::CqEvent &ev)
virtual void onEvent (const gemfire::CqEvent &ev)
GemStone::GemFire::Cache::ICqListenerptr () const
virtual ~ManagedCqListenerGeneric ()

Static Public Member Functions

static CqListener * create (const char *assemblyPath, const char *factoryFunctionName)

Constructor & Destructor Documentation

gemfire::ManagedCqListenerGeneric::ManagedCqListenerGeneric ( Object^   userptr  )  [inline]

Constructor to initialize with the provided managed object.

Parameters:
userptr The user object.

virtual gemfire::ManagedCqListenerGeneric::~ManagedCqListenerGeneric (  )  [inline, virtual]

Destructor -- does nothing.


Member Function Documentation

virtual void gemfire::ManagedCqListenerGeneric::close (  )  [virtual]

Handles the event of an entry's value being invalidated.

EntryEvent denotes the event object associated with the entry invalidation.

static CqListener* gemfire::ManagedCqListenerGeneric::create ( const char *  assemblyPath,
const char *  factoryFunctionName 
) [static]

Static function to create a ManagedCacheListener using given managed assembly path and given factory function.

Parameters:
assemblyPath The path of the managed assembly that contains the ICacheListener factory function.
factoryFunctionName The name of the factory function of the managed class for creating an object that implements ICacheListener. This should be a static function of the format {Namespace}.{Class Name}.{Method Name}.
Exceptions:
IllegalArgumentException If the managed library cannot be loaded or the factory function fails.

virtual void gemfire::ManagedCqListenerGeneric::onError ( const gemfire::CqEvent &  ev  )  [virtual]

Handles the event of an entry's value being modified in a region.

This entry previously existed in this region in the local cache, but its previous value may have been null.

Parameters:
ev EntryEvent denotes the event object associated with updating the entry.
See also:
GemStone.GemFire.Cache.Region.Put

virtual void gemfire::ManagedCqListenerGeneric::onEvent ( const gemfire::CqEvent &  ev  )  [virtual]

Handles the event of a new key being added to a region.

The entry did not previously exist in this region in the local cache (even with a null value).

This function does not throw any exception.

Parameters:
ev Denotes the event object associated with the entry creation.
See also:
GemStone.GemFire.Cache.Region.Create, GemStone.GemFire.Cache.Region.Put, GemStone.GemFire.Cache.Region.Get

GemStone::GemFire::Cache:: ICqListener ^ gemfire::ManagedCqListenerGeneric::ptr (  )  const [inline]

Returns the wrapped managed object reference.


GemFire C++ Cache .NET API Documentation