GemStone::GemFire::Cache::ICacheRegionListener Interface Reference


Detailed Description

An application plug-in that can be installed on a cache.

Listeners receive notifications when a region is created or destroyed on another node. The methods on a ICacheRegionListener are invoked asynchronously. Listeners are change notifications that are invoked after the change has occured. Multiple events can cause concurrent invocation of ICacheRegionListener methods. If event A occurs before event B, there is no guarantee that their corresponding ICacheRegionListener method invocations will occur in the same order. Any exceptions thrown by the listener are caught by GemFire and logged.

Listeners are user callbacks that are invoked by GemFire. It is important to ensure that minimal work is done in the listener before returning control back to GemFire. For example, a listener implementation may choose to hand off the event to a thread pool that then processes the event on its thread rather than the listener thread.

Public Member Functions

void AfterRegionCreate (String^ path)
void AfterRegionDestroy (String^ path)


Member Function Documentation

void GemStone::GemFire::Cache::ICacheRegionListener::AfterRegionCreate ( String^   path  ) 

Handles the event of a new region being created on a server.

Parameters:
path Full path of the region being created.

void GemStone::GemFire::Cache::ICacheRegionListener::AfterRegionDestroy ( String^   path  ) 

Handles the event of a region being destroyed.

Parameters:
path Full path of the region being destroyed.


GemFire C++ Cache .NET API Documentation