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
|
Improve this Doc
View Source
Key(String)
Creates a new key instance.
Declaration
Parameters
Type |
Name |
Description |
String |
id |
The unique identifier for this key.
|
Properties
|
Improve this Doc
View Source
Id
The identifier for this key.
Declaration
public string Id { get; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(IKey)
Declaration
public bool Equals(IKey key)
Parameters
Type |
Name |
Description |
IKey |
key |
|
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public sealed override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Improve this Doc
View Source
Implicit(Key<T> to String)
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