Click or drag to resize
Akka.NETConsistentHashT Class
Consistent Hashing node ring implementation. A good explanation of Consistent Hashing: http://weblogs.java.net/blog/tomwhite/archive/2007/11/consistent_hash.html Note that toString of the ring nodes are used for the node hash, i.e. make sure it is different for different nodes.
Inheritance Hierarchy
SystemObject
  Akka.RoutingConsistentHashT

Namespace:  Akka.Routing
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public class ConsistentHash<T>

Type Parameters

T
The type of objects to store in the hash.

The ConsistentHashT type exposes the following members.

Constructors
  NameDescription
Public methodConsistentHashT
Initializes a new instance of the ConsistentHashT class.
Top
Properties
  NameDescription
Public propertyIsEmpty
Check to determine if the node ring is empty (i.e. no nodes added or all removed)
Top
Methods
  NameDescription
Public methodAdd
Adds a node to the hash ring. Note that ConsistentHashT is immutable and this operation returns a new instance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNodeFor(Byte)
Retrieves the node associated with the data key.
Public methodNodeFor(String)
Retrieves the node associated with the data key.
Public methodRemove
Removes a node from the hash ring. Note that ConsistentHashT is immutable and this operation returns a new instance.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds a node to the hash ring. Note that ConsistentHashT is immutable and this operation returns a new instance.
Public operatorStatic memberSubtraction
Removes a node from the hash ring. Note that ConsistentHashT is immutable and this operation returns a new instance.
Top
Extension Methods
See Also