| DslUpdateT Method (IKeyT, IWriteConsistency, FuncT, T) |
Constructs a message that, when send to
Replicator,
will perform an update of a structure stored under provided
key.
Update operation is described by
modify function, that will take
a previous value as an input parameter.
An
consistency level may be provided to set up certain constraints
on retrieved
IUpdateResponse replied from replicator as a result.
Namespace:
Akka.DistributedData
Assembly:
Akka.DistributedData (in Akka.DistributedData.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static Update Update<T>(
IKey<T> key,
IWriteConsistency consistency,
Func<T, T> modify
)
where T : IReplicatedData
static member Update :
key : IKey<'T> *
consistency : IWriteConsistency *
modify : Func<'T, 'T> -> Update when 'T : IReplicatedData
Parameters
- key
- Type: Akka.DistributedDataIKeyT
Key under which a value should be updated. - consistency
- Type: Akka.DistributedDataIWriteConsistency
Consistency determining how/when response will be emitted. - modify
- Type: SystemFuncT, T
An updating function.
Type Parameters
- T
- Replicated data type.
Return Value
Type:
UpdateTBD
See Also