Show / Hide Table of Contents

Class SemiLiteEventTransformer

SemiLiteEventTransformer is a special purpose ICacheEventTransformer implementation that removes an OldValue from the CacheEventArgs object for the purpose of reducing the amount of data that has to be sent over the network to event consumers.

Inheritance
object
SemiLiteEventTransformer
Implements
ICacheEventTransformer
IPortableObject
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Tangosol.Util.Transformer
Assembly: Coherence.dll
Syntax
public class SemiLiteEventTransformer : ICacheEventTransformer, IPortableObject
Remarks

Usage example:

cache.AddCacheListener(listener,
    new CacheEventTransformerFilter(null,
    SemiLiteEventTransformer.Instance), false);

Constructors

SemiLiteEventTransformer()

Default constructor.

Declaration
public SemiLiteEventTransformer()

Fields

Instance

The SemiLiteEventTransformer singleton.

Declaration
public static readonly SemiLiteEventTransformer Instance
Field Value
Type Description
SemiLiteEventTransformer

Methods

Equals(object)

Compare this object with another object to determine equality.

Declaration
public override bool Equals(object o)
Parameters
Type Name Description
object o

The object to compare with current object.

Returns
Type Description
bool

true if this object and the passed object are equivalent objects.

Overrides
object.Equals(object)

GetHashCode()

Determine a hash value for this object.

Declaration
public override int GetHashCode()
Returns
Type Description
int

An integer hash value for this object.

Overrides
object.GetHashCode()

ReadExternal(IPofReader)

Restore the contents of a user type instance by reading its state using the specified IPofReader object.

Declaration
public virtual void ReadExternal(IPofReader reader)
Parameters
Type Name Description
IPofReader reader

The IPofReader from which to read the object's state.

Exceptions
Type Condition
IOException

If an I/O error occurs.

ToString()

Return a human-readable description for this object.

Declaration
public override string ToString()
Returns
Type Description
string

A string description of the object.

Overrides
object.ToString()

Transform(CacheEventArgs)

Transform the specified CacheEventArgs.

Declaration
public virtual 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.

WriteExternal(IPofWriter)

Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.

Declaration
public virtual void WriteExternal(IPofWriter writer)
Parameters
Type Name Description
IPofWriter writer

The IPofWriter to which to write the object's state.

Exceptions
Type Condition
IOException

If an I/O error occurs.

Implements

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