GemStone::GemFire::Cache::Generic::ICqStatusListener< TKey, TResult > Interface Template Reference

Inherits GemStone::GemFire::Cache::Generic::ICqListener< TKey, TResult >< TKey, TResult >.


Detailed Description

template<class TKey, class TResult>
interface GemStone::GemFire::Cache::Generic::ICqStatusListener< TKey, TResult >

Extension of CqListener. Adds two new methods to CqListener, one that is called when the cq is connected and one that is called when the cq is disconnected.

Public Member Functions

void Close ()
void Close ()
virtual void OnCqConnected ()
virtual void OnCqDisconnected ()
void OnError (CqEvent< TKey, TResult >^ev)
void OnError (CqEvent^ ev)
void OnEvent (CqEvent< TKey, TResult >^ev)
void OnEvent (CqEvent^ ev)

Member Function Documentation

template<class TKey, class TResult>
void GemStone::GemFire::Cache::Generic::ICqListener< TKey, TResult >::Close (  )  [inherited]

Called when the region containing this callback is destroyed, when the cache is closed.

Implementations should clean up any external resources, such as database connections. Any runtime exceptions this method throws will be logged.

It is possible for this method to be called multiple times on a single callback instance, so implementations must be tolerant of this.

See also:
Cache.Close, Region.DestroyRegion

Implemented in GemStone::GemFire::Cache::Generic::CqListener< TKey, TResult >.

template<class TKey, class TResult>
void GemStone::GemFire::Cache::Generic::ICqListener< TKey, TResult >::Close (  )  [inherited]

Called when the region containing this callback is destroyed, when the cache is closed.

Implementations should clean up any external resources, such as database connections. Any runtime exceptions this method throws will be logged.

It is possible for this method to be called multiple times on a single callback instance, so implementations must be tolerant of this.

See also:
Cache.Close, Region.DestroyRegion

Implemented in GemStone::GemFire::Cache::Generic::CqListener< TKey, TResult >.

template<class TKey, class TResult>
virtual void GemStone::GemFire::Cache::Generic::ICqStatusListener< TKey, TResult >::OnCqConnected (  )  [virtual]

Called when the cq establishes a connection with a server

template<class TKey, class TResult>
virtual void GemStone::GemFire::Cache::Generic::ICqStatusListener< TKey, TResult >::OnCqDisconnected (  )  [virtual]

Called when the cq loses connection with all servers.

template<class TKey, class TResult>
void GemStone::GemFire::Cache::Generic::ICqListener< TKey, TResult >::OnError ( CqEvent< TKey, TResult >^  ev  )  [inherited]

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:
Region.Put

Implemented in GemStone::GemFire::Cache::Generic::CqListener< TKey, TResult >.

template<class TKey, class TResult>
void GemStone::GemFire::Cache::Generic::ICqListener< TKey, TResult >::OnError ( CqEvent^   ev  )  [inherited]

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:
Region.Put

Implemented in GemStone::GemFire::Cache::Generic::CqListener< TKey, TResult >.

template<class TKey, class TResult>
void GemStone::GemFire::Cache::Generic::ICqListener< TKey, TResult >::OnEvent ( CqEvent< TKey, TResult >^  ev  )  [inherited]

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:
Region.Create, Region.Put, Region.Get

Implemented in GemStone::GemFire::Cache::Generic::CqListener< TKey, TResult >.

template<class TKey, class TResult>
void GemStone::GemFire::Cache::Generic::ICqListener< TKey, TResult >::OnEvent ( CqEvent^   ev  )  [inherited]

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:
Region.Create, Region.Put, Region.Get

Implemented in GemStone::GemFire::Cache::Generic::CqListener< TKey, TResult >.


GemFire C++ Cache .NET API Documentation