Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)
System..::.Object
Tangosol.Net..::.AbstractPriorityTask
Tangosol.Util.Processor..::.PriorityProcessor
E18812-01
PriorityProcessor is used to explicitly control the scheduling
priority and timeouts for execution of IEntryProcessor
-based methods.
Namespace:
Tangosol.Util.ProcessorAssembly: 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#
This is an advanced feature which should be used judiciously.
PreloadRequest procStandard = PreloadRequest.Instance;
PriorityProcessor procPriority = new PriorityProcessor(procStandard);
procPriority.ExecutionTimeoutMillis = PriorityTaskTimeout.None;
cache.ProcessAll(keys, procPriority);
Inheritance Hierarchy
Tangosol.Net..::.AbstractPriorityTask
Tangosol.Util.Processor..::.PriorityProcessor