UpdaterProcessor Class |
Namespace: Tangosol.Util.Processor
public class UpdaterProcessor : AbstractProcessor, IPortableObject
The UpdaterProcessor type exposes the following members.
Name | Description | |
---|---|---|
![]() | UpdaterProcessor |
Default constructor.
|
![]() | UpdaterProcessor(String, Object) |
Construct an UpdaterProcessor for a given member name.
|
![]() | UpdaterProcessor(IValueUpdater, Object) |
Construct an UpdaterProcessor based on the specified
IValueUpdater.
|
Name | Description | |
---|---|---|
![]() | Equals |
Compare the UpdaterProcessor with another object to
determine equality.
(Overrides ObjectEquals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode |
Determine a hash value for the UpdaterProcessor object
according to the general GetHashCode
contract.
(Overrides ObjectGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Process |
Process an IInvocableCacheEntry.
(Overrides AbstractProcessorProcess(IInvocableCacheEntry).) |
![]() | ProcessAll |
Process a collection of IInvocableCacheEntry
objects.
(Inherited from AbstractProcessor.) |
![]() | ReadExternal |
Restore the contents of a user type instance by reading its state
using the specified IPofReader object.
|
![]() | ToString |
Return a human-readable description for this
UpdaterProcessor.
(Overrides ObjectToString.) |
![]() | WriteExternal |
Save the contents of a POF user type instance by writing its
state using the specified IPofWriter object.
|
Name | Description | |
---|---|---|
![]() | m_updater |
The underlying IValueUpdater.
|
![]() | m_value |
A value to update the entry's value with.
|
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.