Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
12c (12.2.1.4.0)
E90869-02
ICacheTrigger represents a functional agent that allows to validate,
reject or modify mutating operations against an underlying cache.
Namespace: Tangosol.Net.Cache
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)
Syntax
C# |
---|
public interface ICacheTrigger |
Remarks
The trigger operates on ICacheTriggerEntry object that
represents a pending mutation that is about to be committed to the
underlying cache. An ICacheTrigger could be registered with any
IObservableCache using the
CacheTriggerListener class:
CopyC#Note: In a clustered environment, ICacheTrigger registration
process requires triggers to be serializable and providing a
non-default implementation of the GetHashCode() and Equals() methods.
Failure to do so may result in duplicate registration and a redundant
entry processing by equivalent, but "not equal" ICacheTrigger
objects.

INamedCache cache = CacheFactory.GetCache(cacheName); ICacheTrigger trigger = new MyCustomTrigger(); cache.AddCacheListener(new CacheTriggerListener(trigger));