gemfire::ManagedCqStatusListenerGeneric Class Reference

Detailed Description

Wraps the managed GemStone.GemFire.Cache.ICqStatusListener object and implements the native gemfire::CqStatusListener interface.

Public Member Functions

virtual void close ()
 ManagedCqStatusListenerGeneric (Object^ userptr)
virtual void onCqConnected ()
virtual void onCqDisconnected ()
virtual void onError (const gemfire::CqEvent &ev)
virtual void onEvent (const gemfire::CqEvent &ev)
GemStone::GemFire::Cache::ICqStatusListenerptr () const
virtual ~ManagedCqStatusListenerGeneric ()

Static Public Member Functions

static CqListenercreate (const char *assemblyPath, const char *factoryFunctionName)

Constructor & Destructor Documentation

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

Constructor to initialize with the provided managed object.

userptr The user object.

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

Destructor -- does nothing.

Member Function Documentation

virtual void gemfire::ManagedCqStatusListenerGeneric::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::ManagedCqStatusListenerGeneric::create ( const char *  assemblyPath,
const char *  factoryFunctionName 
) [static]

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

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

virtual void gemfire::ManagedCqStatusListenerGeneric::onCqConnected (  )  [virtual]

Called when the cq establishes a connection with a server

virtual void gemfire::ManagedCqStatusListenerGeneric::onCqDisconnected (  )  [virtual]

Called when the cq loses connection with all servers

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

This method is invoked when there is an error during CQ processing. The error can appear while applying query condition on the event. e.g if the event doesn't has attributes as specified in the CQ query. This event does contain an error. The newValue may or may not be available, and will be NULLPTR if not available.

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

This method is invoked when an event is occurred on the region that satisfied the query condition of this CQ. This event does not contain an error.

GemStone::GemFire::Cache::ICqStatusListener ^ gemfire::ManagedCqStatusListenerGeneric::ptr (  )  const [inline]

Returns the wrapped managed object reference.

GemFire C++ Cache .NET API Documentation