Class Key<T>
Key for the key-value data in Akka.DistributedData.Replicator. The type of the data value
is defined in the key. KeySet are compared equal if the id strings are equal,
i.e. use unique identifiers.
Specific classes are provided for the built in data types, e.g. ORSetKey<T>, and you can create your own keys.
Inherited Members
Namespace: Akka.DistributedData
Assembly: Akka.DistributedData.dll
Syntax
public abstract class Key<T> : IKey<T>, IKey, IReplicatedDataSerialization where T : IReplicatedData
Type Parameters
| Name | Description |
|---|---|
| T | TBD |
Constructors
| Edit this page View SourceKey(string)
Creates a new key instance.
Declaration
protected Key(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The unique identifier for this key. |
Properties
| Edit this page View SourceId
The identifier for this key.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceEquals(IKey)
Declaration
public bool Equals(IKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| IKey | key |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override sealed 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 SourceGetHashCode()
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. |
Overrides
Operators
| Edit this page View Sourceimplicit operator string(Key<T>)
Declaration
public static implicit operator string(Key<T> key)
Parameters
| Type | Name | Description |
|---|---|---|
| Key<T> | key | The key to convert |
Returns
| Type | Description |
|---|---|
| string | The result of the conversion |
Edit this page