CacheEventFilter Class |
Namespace: Tangosol.Util.Filter
public class CacheEventFilter : IFilter, IPortableObject
The CacheEventFilter type exposes the following members.
| Name | Description | |
|---|---|---|
| CacheEventFilter |
Default constructor.
| |
| CacheEventFilter(CacheEventFilterCacheEventMask) |
Construct a CacheEventFilter that evaluates
CacheEventArgs objects based on the specified
combination of event types.
| |
| CacheEventFilter(IFilter) |
Construct a CacheEventFilter that evaluates
CacheEventArgs objects that would affect the
results of a keys collection filter issued by a previous call to
Keys.
| |
| CacheEventFilter(CacheEventFilterCacheEventMask, CacheEventFilterCacheEventSyntheticMask) |
Construct a CacheEventFilter that evaluates
CacheEventArgs objects based on the specified
combination of event types.
| |
| CacheEventFilter(CacheEventFilterCacheEventMask, IFilter) |
Construct a CacheEventFilter that evaluates
CacheEventArgs objects based on the specified
combination of event types.
| |
| CacheEventFilter(CacheEventFilterCacheEventMask, IFilter, CacheEventFilterCacheEventSyntheticMask) |
Construct a CacheEventFilter that evaluates
CacheEventArgs objects based on the specified
combination of event types.
|
| Name | Description | |
|---|---|---|
| EventMask |
Obtain the event mask.
| |
| Filter |
Obtain the IFilter object used to evaluate the
event value(s).
|
| Name | Description | |
|---|---|---|
| Equals |
Compare the CacheEventFilter with another object to
determine equality.
(Overrides ObjectEquals(Object).) | |
| Evaluate |
Apply the test to the object.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode |
Determine a hash value for the CacheEventFilter object
according to the general object.GetHashCode() contract.
(Overrides ObjectGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ReadExternal |
Restore the contents of a user type instance by reading its state
using the specified IPofReader object.
| |
| ToString |
Return a human-readable description for this
CacheEventFilter.
(Overrides ObjectToString.) | |
| WriteExternal |
Save the contents of a POF user type instance by writing its
state using the specified IPofWriter object.
|
| Name | Description | |
|---|---|---|
| m_filter |
The event value(s) filter.
| |
| m_mask |
The event mask.
| |
| m_maskSynth |
The synthetic mask.
|
Usage examples:
new CacheEventFilter(CacheEventMask.Inserted, new EqualsFilter("IsMarried", true));
new CacheEventFilter(CacheEventMask.Deleted);new CacheEventFilter(CacheEventMask.Updated, new EqualsFilter("LastName", "Smith"));
ICollection keys = new ArrayList(); IFilter filterEvt = new CacheEventFilter(filterCache); ICacheListener listener = new TestListener(); cache.AddCacheListener(listener, filterEvt, true); keys.AddAll(cache.GetKeys(filterCache));