Click or drag to resize
Akka.NETLWWDictionaryTKey, TValueSetItem Method (Cluster, TKey, TValue, ClockTValue)
Adds an entry to the map. You can provide your clock implementation instead of using timestamps based on DateTime.UtcNow.Ticks time. The timestamp can for example be an increasing version number from a database record that is used for optimistic concurrency control.

Namespace:  Akka.DistributedData
Assembly:  Akka.DistributedData (in Akka.DistributedData.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public LWWDictionary<TKey, TValue> SetItem(
	Cluster node,
	TKey key,
	TValue value,
	Clock<TValue> clock = null
)

Parameters

node
Type: Akka.ClusterCluster

[Missing <param name="node"/> documentation for "M:Akka.DistributedData.LWWDictionary`2.SetItem(Akka.Cluster.Cluster,`0,`1,Akka.DistributedData.Clock{`1})"]

key
Type: TKey

[Missing <param name="key"/> documentation for "M:Akka.DistributedData.LWWDictionary`2.SetItem(Akka.Cluster.Cluster,`0,`1,Akka.DistributedData.Clock{`1})"]

value
Type: TValue

[Missing <param name="value"/> documentation for "M:Akka.DistributedData.LWWDictionary`2.SetItem(Akka.Cluster.Cluster,`0,`1,Akka.DistributedData.Clock{`1})"]

clock (Optional)
Type: Akka.DistributedDataClockTValue

[Missing <param name="clock"/> documentation for "M:Akka.DistributedData.LWWDictionary`2.SetItem(Akka.Cluster.Cluster,`0,`1,Akka.DistributedData.Clock{`1})"]

Return Value

Type: LWWDictionaryTKey, TValue

[Missing <returns> documentation for "M:Akka.DistributedData.LWWDictionary`2.SetItem(Akka.Cluster.Cluster,`0,`1,Akka.DistributedData.Clock{`1})"]

See Also