Class ValueChangeEventFilter
IFilter which evaluates the content of a CacheEventArgs values based on the specified value extractor.
Inherited Members
Namespace: Tangosol.Util.Filter
Assembly: Coherence.dll
Syntax
public class ValueChangeEventFilter : ExtractorFilter, IEntryFilter, IFilter, IPortableObject
Remarks
This filter evaluates to true only for update events that change the value of an extracted attribute.
Example: a filter that evaluates to true if there is an update to an Employee object that changes a value of the LastName property.new ValueChangeEventFilter("LastName");
Constructors
ValueChangeEventFilter()
Default constructor.
Declaration
public ValueChangeEventFilter()
ValueChangeEventFilter(string)
Construct a ValueChangeEventFilter that evaluates CacheEventArgs values based on the specified member name.
Declaration
public ValueChangeEventFilter(string member)
Parameters
Type | Name | Description |
---|---|---|
string | member | The name of the member to invoke via reflection. |
ValueChangeEventFilter(IValueExtractor)
Construct a ValueChangeEventFilter that evaluates CacheEventArgs values based on the specified extractor.
Declaration
public ValueChangeEventFilter(IValueExtractor extractor)
Parameters
Type | Name | Description |
---|---|---|
IValueExtractor | extractor | IValueExtractor to extract CacheEvent values. |
Methods
Equals(object)
Compare the ValueChangeEventFilter with another object to determine equality.
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o | The ValueChangeEventFilter to compare to. |
Returns
Type | Description |
---|---|
bool | true if this ValueChangeEventFilter and the passed object are equivalent filters. |
Overrides
Evaluate(object)
Apply the test to the object.
Declaration
public override bool Evaluate(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o | An object to which the test is applied. |
Returns
Type | Description |
---|---|
bool | true if the test passes, false otherwise. |
Overrides
EvaluateExtracted(object)
Evaluate the specified extracted value.
Declaration
protected override bool EvaluateExtracted(object extracted)
Parameters
Type | Name | Description |
---|---|---|
object | extracted | An extracted value to evaluate. |
Returns
Type | Description |
---|---|
bool | true if the test passes, false otherwise. |
Overrides
GetHashCode()
Determine a hash value for the ValueChangeEventFilter object according to the general object.GetHashCode() contract.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | An integer hash value for this ValueChangeEventFilter object. |
Overrides
ToString()
Return a human-readable description for this ValueChangeEventFilter.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A String description of the ValueChangeEventFilter. |