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

UpdaterProcessor is an IEntryProcessor implementations that updates an attribute of an object cached in an IInvocableCache.

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

Syntax

C#
public class UpdaterProcessor : AbstractProcessor, 
	IPortableObject

Remarks

A common usage pattern is:
            cache.Invoke(Key, new UpdaterProcessor(updater, value));
            
which is functionally equivalent to the following operation:
            Object target = cache.Get(Key);
            updater.update(target, value);
            cache.Put(Key, target);
            
The major difference is that for clustered caches using the UpdaterProcessor allows avoiding explicit concurrency control and could significantly reduce the amount of network traffic.

Inheritance Hierarchy

System..::.Object
  Tangosol.Util.Processor..::.AbstractProcessor
    Tangosol.Util.Processor..::.UpdaterProcessor

See Also