Click or drag to resize
Akka.NETVersionVector Class
Representation of a Vector-based clock (counting clock), inspired by Lamport logical clocks. Based on code from VectorClock. This class is immutable, i.e. "modifying" methods return a new instance.
Inheritance Hierarchy

Namespace:  Akka.DistributedData
Assembly:  Akka.DistributedData (in Akka.DistributedData.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
[SerializableAttribute]
public abstract class VersionVector : IReplicatedData<VersionVector>, 
	IReplicatedData, IReplicatedDataSerialization, IRemovedNodePruning<VersionVector>, IEquatable<VersionVector>

The VersionVector type exposes the following members.

Constructors
  NameDescription
Protected methodVersionVector
Initializes a new instance of the VersionVector class
Top
Properties
Methods
  NameDescription
Public methodCompare
Compare two version vectors. The outcome will be one of the following:

Version 1 is SAME (==) as Version 2 iff for all i c1(i) == c2(i)

Version 1 is BEFORE (<) Version 2 iff for all i c1(i) <= c2(i) and there exist a j such that c1(j) < c2(j)

Version 1 is AFTER (>) Version 2 iff for all i c1(i) >= c2(i) and there exist a j such that c1(j) > c2(j)

Version 1 is CONCURRENT to Version 2 otherwise

Public methodContains
Public methodStatic memberCreate(ImmutableDictionaryUniqueAddress, Int64)
Public methodStatic memberCreate(UniqueAddress, Int64)
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(VersionVector)
Indicates whether the current object is equal to another object of the same type.
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.)
Public methodIncrement
Increment the version for the node passed as argument. Returns a new VersionVector.
Public methodIsAfter
Public methodIsBefore
Public methodIsConcurrent
Public methodIsSame
Returns true if x VersionVector has the same history as the y VersionVector else false.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge(IReplicatedData)
Public methodMerge(VersionVector)
Merges this VersionVector with another VersionVector. E.g. merges its versioned history.
Public methodNeedPruningFrom
Public methodPrune
Public methodPruningCleanup
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVersionAt
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Public operatorStatic memberGreaterThan
Returns true if x is after y else false.
Public operatorStatic memberInequality
Returns true if x VersionVector has other history than the y VersionVector else false.
Public operatorStatic memberLessThan
Returns true if x is before y else false.
Top
Fields
  NameDescription
Protected fieldStatic memberCounter
Public fieldStatic memberEmpty
Top
Extension Methods
See Also