Click or drag to resize
Akka.NETFastMergeT Class
INTERNAL API Optimization for add/remove followed by merge and merge should just fast forward to the new instance. It's like a cache between calls of the same thread, you can think of it as a thread local. The Replicator actor invokes the user's modify function, which returns a new ReplicatedData instance, with the ancestor field set (see for example the add method in ORSet). Then (in same thread) the Replication calls merge, which makes use of the ancestor field to perform quick merge (see for example merge method in ORSet). It's not thread safe if the modifying function and merge are called from different threads, i.e. if used outside the Replicator infrastructure, but the worst thing that can happen is that a full merge is performed instead of the fast forward merge.
Inheritance Hierarchy

Namespace:  Akka.DistributedData
Assembly:  Akka.DistributedData (in Akka.DistributedData.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public abstract class FastMerge<T> : IReplicatedData<T>, 
	IReplicatedData
where T : FastMerge<T>

Type Parameters

T
TBD

The FastMergeT type exposes the following members.

Constructors
  NameDescription
Protected methodFastMergeT
Initializes a new instance of the FastMergeT class
Top
Methods
  NameDescription
Protected methodAssignAncestor
INTERNAL API: should be called from "updating" methods
Protected methodClearAncestor
INTERNAL API: should be called from merge
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodIsAncestorOf
INTERNAL API: should be used from merge
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge(T)
TBD
Public methodMerge(IReplicatedData)
TBD
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also