Click or drag to resize
ICqEvent Interface

Note: This API is now obsolete.

An application plug-in that can be installed on a region. Listener change notifications are invoked after the change has occured.

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public interface ICqEvent

The ICqEvent type exposes the following members.

Methods
  NameDescription
Public methodgetBaseOperation
Handles the event of an entry's value being modified in a region.
Public methodgetCq
Handles the event of a new key being added to a region.
Public methodgetKey
Called when the region containing this callback is destroyed, when the cache is closed.
Public methodgetNewValue
Public methodgetQueryOperation
Top
Remarks
Listeners receive notifications when entries in a region change or changes occur to the region attributes themselves.

A cache listener is defined in the [!:RegionAttributes].

The methods on a ICacheListener are invoked asynchronously. Multiple events can cause concurrent invocation of ICacheListener methods. If event A occurs before event B, there is no guarantee that their corresponding ICacheListener 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
See Also

Reference

[!:AttributesFactory.SetCacheListener]
[!:RegionAttributes.CacheListener]
[!:ICacheLoader]
[!:ICacheWriter]