Show / Hide Table of Contents

Interface ICacheEventTransformer

ICacheEventTransformer interface is used to allow an event consumer to change the content of a CacheEventArgs destined for the corresponding ICacheListener.

Namespace: Tangosol.Net.Cache
Assembly: Coherence.dll
Syntax
public interface ICacheEventTransformer
Remarks

In general, the Transform(CacheEventArgs) method is called after the original CacheEventArgs is evaluated by an IFilter (such as CacheEventFilter). The values contained by the returned CacheEventArgs object will be the ones given (sent) to the corresponding listener. Returning null will prevent the emission of the event altogether.

Note: Currently, the ICacheEventTransformer interface is supported only by partitioned caches.

Methods

Transform(CacheEventArgs)

Transform the specified CacheEventArgs.

Declaration
CacheEventArgs Transform(CacheEventArgs evt)
Parameters
Type Name Description
CacheEventArgs evt

The original CacheEventArgs object.

Returns
Type Description
CacheEventArgs

Modified CacheEventArgs object or null to discard the event.

Remarks

The values contained by the returned CacheEventArgs object will be the ones given (sent) to the corresponding listener.

In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.