Click or drag to resize
Akka.NETUpdate Class
Send this message to the local Replicator to update a data value for the given Key. The Replicator will reply with one of the [!:IUpdateResponse<T>] messages. The current data value for the Key is passed as parameter to the Modify function. It is if there is no value for the Key, and otherwise Request. The function is supposed to return the new value of the data, which will then be replicated according to the given IWriteConsistency. The Modify function is called by the `Replicator` actor and must therefore be a pure function that only uses the data parameter and stable fields from enclosing scope. It must for example not access `sender()` reference of an enclosing actor.
Inheritance Hierarchy
SystemObject
  Akka.DistributedDataUpdate

Namespace:  Akka.DistributedData
Assembly:  Akka.DistributedData (in Akka.DistributedData.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
[SerializableAttribute]
public sealed class Update : INoSerializationVerificationNeeded

The Update type exposes the following members.

Constructors
  NameDescription
Public methodUpdate(IKey, IWriteConsistency, FuncIReplicatedData, IReplicatedData, Object)
Initializes a new instance of the Update class
Public methodUpdate(IKey, IReplicatedData, IWriteConsistency, FuncIReplicatedData, IReplicatedData, Object)
Modify value of local Replicator and replicate with given IWriteConsistency. The current value for the Key is passed to the Modify function. If there is no current data value for the Key the initial value will be passed to the Modify function. The optional request context is included in the reply messages. This is a convenient way to pass contextual information (e.g. original sender) without having to use `ask` or local correlation data structures.
Top
Properties
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from 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
Serves as the default hash function.
(Inherited from Object.)
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 methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Extension Methods
See Also