Click or drag to resize

UpdaterProcessor Class

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
UpdaterProcessor is an IEntryProcessor implementations that updates an attribute of an object cached in an IInvocableCache.
Inheritance Hierarchy

Namespace:  Tangosol.Util.Processor
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public class UpdaterProcessor : AbstractProcessor, 
	IPortableObject

The UpdaterProcessor type exposes the following members.

Constructors
  NameDescription
Public methodUpdaterProcessor
Default constructor.
Public methodUpdaterProcessor(String, Object)
Construct an UpdaterProcessor for a given member name.
Public methodUpdaterProcessor(IValueUpdater, Object)
Construct an UpdaterProcessor based on the specified IValueUpdater.
Top
Methods
  NameDescription
Public methodEquals
Compare the UpdaterProcessor with another object to determine equality.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Determine a hash value for the UpdaterProcessor object according to the general GetHashCode contract.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodProcess
Process an IInvocableCacheEntry.
(Overrides AbstractProcessorProcess(IInvocableCacheEntry).)
Public methodProcessAll
Process a collection of IInvocableCacheEntry objects.
(Inherited from AbstractProcessor.)
Public methodReadExternal
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Public methodToString
Return a human-readable description for this UpdaterProcessor.
(Overrides ObjectToString.)
Public methodWriteExternal
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.
Top
Fields
  NameDescription
Protected fieldm_updater
The underlying IValueUpdater.
Protected fieldm_value
A value to update the entry's value with.
Top
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.
See Also