Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Key<T>
    FlagKey
    GCounterKey
    GSetKey<T>
    LWWDictionaryKey<TKey, TValue>
    LWWRegisterKey<T>
    ORDictionaryKey<TKey, TValue>
    ORMultiValueDictionaryKey<TKey, TValue>
    ORSetKey<T>
    PNCounterDictionaryKey<T>
    PNCounterKey
    Implements
    IKey<T>
    IKey
    IReplicatedDataSerialization
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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 Source

    Key(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 Source

    Id

    The identifier for this key.

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Equals(IKey)

    Declaration
    public bool Equals(IKey key)
    Parameters
    Type Name Description
    IKey key
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object)

    Declaration
    public override sealed bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    | Edit this page View Source

    implicit operator string(Key<T>)

    Performs an implicit conversion from 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

    IKey<T>
    IKey
    IReplicatedDataSerialization

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET