Search Results for

    Show / Hide Table of Contents

    Interface IReplicatedData<T>

    Interface for implementing a state based convergent replicated data type (CvRDT).

    ReplicatedData types must be serializable with an Akka Serializer. It is highly recommended to implement a serializer with Protobuf or similar. The built in data types are marked with IReplicatedDataSerialization and serialized with ReplicatedDataSerializer.

    Serialization of the data types are used in remote messages and also for creating message digests (SHA-1) to detect changes. Therefore it is important that the serialization produce the same bytes for the same content. For example sets and maps should be sorted deterministically in the serialization.

    ReplicatedData types should be immutable, i.e. "modifying" methods should return a new instance.

    Inherited Members
    IReplicatedData.Merge(IReplicatedData)
    Namespace: Akka.DistributedData
    Assembly: Akka.DistributedData.dll
    Syntax
    public interface IReplicatedData<T> : IReplicatedData where T : IReplicatedData
    Type Parameters
    Name Description
    T

    Methods

    | Edit this page View Source

    Merge(T)

    Monotonic merge method.

    Declaration
    T Merge(T other)
    Parameters
    Type Name Description
    T other
    Returns
    Type Description
    T

    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