Class PNCounterDictionary<TKey>
Inheritance
PNCounterDictionary<TKey>
Assembly: Akka.DistributedData.dll
Syntax
public sealed class PNCounterDictionary<TKey> : IDeltaReplicatedData<PNCounterDictionary<TKey>, ORDictionary<TKey, PNCounter>.IDeltaOperation>, IDeltaReplicatedData, IRemovedNodePruning<PNCounterDictionary<TKey>>, IRemovedNodePruning, IReplicatedData<PNCounterDictionary<TKey>>, IReplicatedData, IReplicatedDataSerialization, IEquatable<PNCounterDictionary<TKey>>, IEnumerable<KeyValuePair<TKey, BigInteger>>, IEnumerable
Type Parameters
Constructors
|
Improve this Doc
View Source
PNCounterDictionary(ORDictionary<TKey, PNCounter>)
Declaration
public PNCounterDictionary(ORDictionary<TKey, PNCounter> underlying)
Parameters
Fields
|
Improve this Doc
View Source
Empty
Declaration
public static readonly PNCounterDictionary<TKey> Empty
Field Value
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
|
Improve this Doc
View Source
Delta
Declaration
public ORDictionary<TKey, PNCounter>.IDeltaOperation Delta { get; }
Property Value
|
Improve this Doc
View Source
Entries
Declaration
public IImmutableDictionary<TKey, BigInteger> Entries { get; }
Property Value
Type |
Description |
System.Collections.Immutable.IImmutableDictionary<TKey, BigInteger> |
|
|
Improve this Doc
View Source
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
|
Improve this Doc
View Source
Item[TKey]
Declaration
public BigInteger this[TKey key] { get; }
Parameters
Type |
Name |
Description |
TKey |
key |
|
Property Value
|
Improve this Doc
View Source
Keys
Declaration
public IEnumerable<TKey> Keys { get; }
Property Value
|
Improve this Doc
View Source
KeyType
Declaration
public Type KeyType { get; }
Property Value
|
Improve this Doc
View Source
ModifiedByNodes
Declaration
public ImmutableHashSet<UniqueAddress> ModifiedByNodes { get; }
Property Value
Type |
Description |
System.Collections.Immutable.ImmutableHashSet<UniqueAddress> |
|
|
Improve this Doc
View Source
Values
Declaration
public IEnumerable<BigInteger> Values { get; }
Property Value
Methods
|
Improve this Doc
View Source
ContainsKey(TKey)
Declaration
public bool ContainsKey(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
|
Improve this Doc
View Source
Decrement(Cluster, TKey, Int64)
Decrement the counter with the delta specified.
If the delta is negative then it will increment instead of decrement.
Declaration
public PNCounterDictionary<TKey> Decrement(Cluster node, TKey key, long delta = 1L)
Parameters
Returns
|
Improve this Doc
View Source
Decrement(UniqueAddress, TKey, Int64)
Decrement the counter with the delta specified.
If the delta is negative then it will increment instead of decrement.
Declaration
public PNCounterDictionary<TKey> Decrement(UniqueAddress node, TKey key, long delta = 1L)
Parameters
Returns
|
Improve this Doc
View Source
Equals(PNCounterDictionary<TKey>)
Declaration
public bool Equals(PNCounterDictionary<TKey> other)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<TKey, BigInteger>> GetEnumerator()
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
Increment(Cluster, TKey, Int64)
Increment the counter with the delta specified.
If the delta is negative then it will decrement instead of increment.
Declaration
public PNCounterDictionary<TKey> Increment(Cluster node, TKey key, long delta = 1L)
Parameters
Returns
|
Improve this Doc
View Source
Increment(UniqueAddress, TKey, Int64)
Increment the counter with the delta specified.
If the delta is negative then it will decrement instead of increment.
Declaration
public PNCounterDictionary<TKey> Increment(UniqueAddress node, TKey key, long delta = 1L)
Parameters
Returns
|
Improve this Doc
View Source
Merge(IReplicatedData)
Declaration
public IReplicatedData Merge(IReplicatedData other)
Parameters
Returns
|
Improve this Doc
View Source
Merge(PNCounterDictionary<TKey>)
Declaration
public PNCounterDictionary<TKey> Merge(PNCounterDictionary<TKey> other)
Parameters
Returns
|
Improve this Doc
View Source
MergeDelta(ORDictionary<TKey, PNCounter>.IDeltaOperation)
Declaration
public PNCounterDictionary<TKey> MergeDelta(ORDictionary<TKey, PNCounter>.IDeltaOperation delta)
Parameters
Returns
|
Improve this Doc
View Source
NeedPruningFrom(UniqueAddress)
Declaration
public bool NeedPruningFrom(UniqueAddress removedNode)
Parameters
Returns
|
Improve this Doc
View Source
Prune(UniqueAddress, UniqueAddress)
Declaration
public PNCounterDictionary<TKey> Prune(UniqueAddress removedNode, UniqueAddress collapseInto)
Parameters
Returns
|
Improve this Doc
View Source
PruningCleanup(UniqueAddress)
Declaration
public PNCounterDictionary<TKey> PruningCleanup(UniqueAddress removedNode)
Parameters
Returns
|
Improve this Doc
View Source
Remove(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.
Declaration
public PNCounterDictionary<TKey> Remove(Cluster node, TKey key)
Parameters
Type |
Name |
Description |
Cluster |
node |
|
TKey |
key |
|
Returns
|
Improve this Doc
View Source
Remove(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.
Declaration
public PNCounterDictionary<TKey> Remove(UniqueAddress node, TKey key)
Parameters
Returns
|
Improve this Doc
View Source
ResetDelta()
Declaration
public PNCounterDictionary<TKey> ResetDelta()
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
TryGetValue(TKey, out BigInteger)
Tries to return a value under provided key
, if such entry exists.
Declaration
public bool TryGetValue(TKey key, out BigInteger value)
Parameters
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
IDeltaReplicatedData.Delta
Declaration
IReplicatedDelta IDeltaReplicatedData.Delta { get; }
Returns
|
Improve this Doc
View Source
IDeltaReplicatedData.MergeDelta(IReplicatedDelta)
Declaration
IReplicatedData IDeltaReplicatedData.MergeDelta(IReplicatedDelta delta)
Parameters
Returns
|
Improve this Doc
View Source
IDeltaReplicatedData.ResetDelta()
Declaration
IReplicatedData IDeltaReplicatedData.ResetDelta()
Returns
|
Improve this Doc
View Source
IRemovedNodePruning.Prune(UniqueAddress, UniqueAddress)
Declaration
IReplicatedData IRemovedNodePruning.Prune(UniqueAddress removedNode, UniqueAddress collapseInto)
Parameters
Returns
|
Improve this Doc
View Source
IRemovedNodePruning.PruningCleanup(UniqueAddress)
Declaration
IReplicatedData IRemovedNodePruning.PruningCleanup(UniqueAddress removedNode)
Parameters
Returns
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements
Extension Methods