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.
Assembly: Akka.DistributedData.dll
Syntax
public abstract class Key<T> : IKey<T>, IKey, IReplicatedDataSerialization where T : IReplicatedData
Type Parameters
Constructors
|
Edit this page
View Source
Key(string)
Creates a new key instance.
Declaration
Parameters
Type |
Name |
Description |
string |
id |
The unique identifier for this key.
|
Properties
|
Edit this page
View Source
Id
The identifier for this key.
Declaration
public string Id { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(IKey)
Declaration
public bool Equals(IKey key)
Parameters
Type |
Name |
Description |
IKey |
key |
|
Returns
|
Edit this page
View Source
Equals(object)
Declaration
public override sealed bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Edit this page
View Source
implicit 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
|
Implements
Extension Methods