Click or drag to resize
Akka.NETLWWDictionaryTKey, TValue Class
Specialized LWWDictionaryTKey, TValue with LWWRegisterT values. LWWRegisterT relies on synchronized clocks and should only be used when the choice of value is not important for concurrent updates occurring within the clock skew. Instead of using timestamps based on DateTime.UtcNow.Ticks time it is possible to use a timestamp value based on something else, for example an increasing version number from a database record that is used for optimistic concurrency control. For first-write-wins semantics you can use the ReverseClock instead of the DefaultClock This class is immutable, i.e. "modifying" methods return a new instance.
Inheritance Hierarchy
SystemObject
  Akka.DistributedDataLWWDictionaryTKey, TValue

Namespace:  Akka.DistributedData
Assembly:  Akka.DistributedData (in Akka.DistributedData.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
[SerializableAttribute]
public sealed class LWWDictionary<TKey, TValue> : IReplicatedData<LWWDictionary<TKey, TValue>>, 
	IReplicatedData, IRemovedNodePruning<LWWDictionary<TKey, TValue>>, IReplicatedDataSerialization, 
	IEquatable<LWWDictionary<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable

Type Parameters

TKey
TBD
TValue
TBD

The LWWDictionaryTKey, TValue type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Returns number of entries stored within current LWWDictionaryTKey, TValue.
Public propertyEntries
Returns all entries stored within current LWWDictionaryTKey, TValue
Public propertyIsEmpty
Determines if current LWWDictionaryTKey, TValue is empty.
Public propertyItem
Returns value stored under provided key.
Public propertyKeys
Returns collection of keys stored within current LWWDictionaryTKey, TValue.
Public propertyValues
Returns collection of values stored within current LWWDictionaryTKey, TValue.
Top
Methods
  NameDescription
Public methodContainsKey
Determines current LWWDictionaryTKey, TValue contains entry with provided key.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(LWWDictionaryTKey, TValue)
TBD
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 methodGetEnumerator
TBD
Public methodGetHashCode
Serves as the default hash function.
(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 methodMerge(IReplicatedData)
TBD
Public methodMerge(LWWDictionaryTKey, TValue)
TBD
Public methodNeedPruningFrom
TBD
Public methodPrune
TBD
Public methodPruningCleanup
TBD
Public methodRemove(Cluster, TKey)
Removes an entry from the map. Note that if there is a conflicting update on another node the entry will not be removed after merge.
Public methodRemove(UniqueAddress, TKey)
Removes an entry from the map. Note that if there is a conflicting update on another node the entry will not be removed after merge.
Public methodSetItem(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.
Public methodSetItem(UniqueAddress, 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.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodTryGetValue
Tries to return a value under provided key is such value exists.
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
An empty instance of the LWWDictionaryTKey, TValue
Top
Extension Methods
  NameDescription
Public Extension MethodAsInstanceOfT
TBD
(Defined by Extensions.)
Public Extension MethodConcatKeyValuePairTKey, TValue
TBD
(Defined by Extensions.)
Public Extension MethodDropKeyValuePairTKey, TValue
Scala alias for Skip
(Defined by Extensions.)
Public Extension MethodForEachKeyValuePairTKey, TValue
Applies a delegate action to all elements of this enumerable.
(Defined by Extensions.)
Public Extension MethodGroupedKeyValuePairTKey, TValue
Partitions elements in fixed size Credits to http://stackoverflow.com/a/13731854/465132
(Defined by EnumerableExtensions.)
Public Extension MethodHeadKeyValuePairTKey, TValue
Scala alias for FirstOrDefault
(Defined by Extensions.)
Public Extension MethodIteratorKeyValuePairTKey, TValue
TBD
(Defined by EnumeratorExtensions.)
Public Extension MethodMatchOverloaded.
Matches the specified target.
(Defined by PatternMatch.)
Public Extension MethodMatchTOverloaded.
Matches the specified target and return a result of target processing.
(Defined by PatternMatch.)
Public Extension MethodShouldBeKeyValuePairTKey, TValue
TBD
(Defined by AkkaSpecExtensions.)
Public Extension MethodShouldOnlyContainInOrderKeyValuePairTKey, TValue
TBD
(Defined by AkkaSpecExtensions.)
Public Extension MethodTakeRightKeyValuePairTKey, TValue
Selects last n elements.
(Defined by Extensions.)
Top
See Also