Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
ExtractorEventTransformer Class
Members See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
ExtractorEventTransformer is a special purpose ICacheEventTransformer implementation that transforms emitted events, extracting one or more properties from either the "OldValue" or the "NewValue".

Namespace: Tangosol.Util.Transformer
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)

# Syntax

C#
    public class ExtractorEventTransformer : ICacheEventTransformer,
    	IPortableObject

# Remarks

This transformation will generally result in the change of the values' data type.

Example: the following code will register a listener to receive events only if the value of the "AccountBalance" property changes. The transformed event's "NewValue" will be a IList containing the "LastTransactionTime" and "AccountBalance" properties. The "OldValue" will always be null.
CopyC#

    IFilter filter = new ValueChangeEventFilter("AccountBalance");
    IValueExtractor extractor = new MultiExtractor("LastTransactionTime,AccountBalance");
    ICacheEventTransformer transformer = new ExtractorEventTransformer(null, extractor);

    cache.AddCacheListener(listener,
                           new CacheEventTransformerFilter(filter,
                                                           transformer),
                           false);

# Inheritance Hierarchy

System..::.Object
Tangosol.Util.Transformer..::.ExtractorEventTransformer

# See Also

ExtractorEventTransformer Members
Tangosol.Util.Transformer Namespace