Collapse All Expand All

C#

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

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

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

# Syntax

C#
    public class PriorityProcessor : AbstractPriorityTask,
    	IEntryProcessor, IPortableObject

# Remarks

For example, let's assume that there is a cache that belongs to a partitioned cache service configured with a task-timeout of 5 seconds. Also assume that there is a particular PreloadRequest processor that could take much longer to complete due to a large amount of database related processing. Then we could override the default task timeout value by using the PriorityProcessor as follows:
CopyC#

    PreloadRequest     procStandard = PreloadRequest.Instance;
    PriorityProcessor  procPriority = new PriorityProcessor(procStandard);
    procPriority.ExecutionTimeoutMillis = PriorityTaskTimeout.None;
    cache.ProcessAll(keys, procPriority);

This is an advanced feature which should be used judiciously.

# Inheritance Hierarchy

System..::.Object
Tangosol.Net..::.AbstractPriorityTask
Tangosol.Util.Processor..::.PriorityProcessor

# See Also

PriorityProcessor Members
Tangosol.Util.Processor Namespace