Class VectorClock.Node
Hash representation of a versioned node name.
Implements
Inherited Members
Namespace: Akka.Cluster
Assembly: Akka.Cluster.dll
Syntax
public class VectorClock.Node : IComparable<VectorClock.Node>
Constructors
| Edit this page View SourceNode(string)
Creates a new vectorclock node.
Declaration
public Node(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The hash value of the string. |
Methods
| Edit this page View SourceCompareTo(Node)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(VectorClock.Node other)
Parameters
| Type | Name | Description |
|---|---|---|
| VectorClock.Node | other | An object to compare with this instance. |
Returns
| Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| int | A value that indicates the relative order of the objects being compared. The return value has these meanings:
|
Create(string)
Creates a new VectorClock node
Declaration
public static VectorClock.Node Create(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the node. |
Returns
| Type | Description |
|---|---|
| VectorClock.Node | A new node representation. |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceFromHash(string)
Creates a node from its MD5 hash representation.
Declaration
public static VectorClock.Node FromHash(string hash)
Parameters
| Type | Name | Description |
|---|---|---|
| string | hash | The hash input value. |
Returns
| Type | Description |
|---|---|
| VectorClock.Node | A Node. |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Edit this page