Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
Add a cache listener that receives events based on a filter evaluation.

Namespace: Tangosol.Net.Cache
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)

Syntax

C#
public virtual void AddCacheListener(
	ICacheListener listener,
	IFilter filter,
	bool isLite
)

Parameters

listener
Type: Tangosol.Net.Cache..::..ICacheListener
The ICacheListener to add.
filter
Type: Tangosol.Util..::..IFilter
A filter that will be passed CacheEvent objects to select from; a CacheEvent will be delivered to the listener only if the filter evaluates to true for that CacheEvent; null is equivalent to a filter that alway returns true.
isLite
Type: System..::..Boolean
true to indicate that the CacheEventArgs objects do not have to include the OldValue and NewValue property values in order to allow optimizations.

Implements

IObservableCache..::..AddCacheListener(ICacheListener, IFilter, Boolean)

Remarks

The listeners will receive CacheEventArgs objects, but if isLite is passed as true, they might not contain the OldValue and NewValue properties.

To unregister the ICacheListener, use the RemoveCacheListener(ICacheListener, IFilter) method.

See Also