Collapse All Expand All

C#

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

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
PriorityFilter is used to explicitly control the scheduling priority and timeouts for execution of filter-based methods.

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

# Syntax

C#
    public class PriorityFilter : AbstractPriorityTask,
    	IIndexAwareFilter, IEntryFilter, IFilter

# Remarks

For example, let's assume that there is a cache that belongs to a partitioned cache service configured with a request-timeout and task-timeout of 5 seconds. Also assume that we are willing to wait longer for a particular rarely executed parallel query that does not employ any indexes. Then we could override the default timeout values by using the PriorityFilter as follows:
CopyC#

    LikeFilter     filterStandard = new LikeFilter("GetComments", "%fail%");
    PriorityFilter filterPriority = new PriorityFilter(filterStandard);
    filterPriority.ExecutionTimeoutMillis = PriorityTaskTimeout.None;
    filterPriority.RequestTimeoutMillis   = PriorityTaskTimeout.None;
    ICollection entries = cache.GetEntries(filterPriority);

This is an advanced feature which should be used judiciously.

# Inheritance Hierarchy

System..::.Object
Tangosol.Net..::.AbstractPriorityTask
Tangosol.Util.Filter..::.PriorityFilter

# See Also

PriorityFilter Members
Tangosol.Util.Filter Namespace