Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

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.7.1.23 (3.7.1.23)

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