Class DeltaPropagation
Inherited Members
Namespace: Akka.DistributedData.Internal
Assembly: Akka.DistributedData.dll
Syntax
public sealed class DeltaPropagation : IReplicatorMessage, IEquatable<DeltaPropagation>
Constructors
| Edit this page View SourceDeltaPropagation(UniqueAddress, bool, ImmutableDictionary<string, Delta>)
Declaration
public DeltaPropagation(UniqueAddress fromNode, bool shouldReply, ImmutableDictionary<string, Delta> deltas)
Parameters
| Type | Name | Description |
|---|---|---|
| UniqueAddress | fromNode | |
| bool | shouldReply | |
| ImmutableDictionary<string, Delta> | deltas |
Fields
| Edit this page View SourceNoDeltaPlaceholder
When a DeltaReplicatedData returns null from Delta it must still be
treated as a delta that increase the version counter in Akka.DistributedData.DeltaPropagationSelector`.
Otherwise a later delta might be applied before the full state gossip is received
and thereby violating IRequireCausualDeliveryOfDeltas.
This is used as a placeholder for such null delta. It's filtered out
in CreateDeltaPropagation(ImmutableDictionary<string, (IReplicatedData data, long from, long to)>), i.e. never sent to the other replicas.
Declaration
public static readonly IReplicatedDelta NoDeltaPlaceholder
Field Value
| Type | Description |
|---|---|
| IReplicatedDelta |
Properties
| Edit this page View SourceDeltas
Declaration
public ImmutableDictionary<string, Delta> Deltas { get; }
Property Value
| Type | Description |
|---|---|
| ImmutableDictionary<string, Delta> |
FromNode
Declaration
public UniqueAddress FromNode { get; }
Property Value
| Type | Description |
|---|---|
| UniqueAddress |
ShouldReply
Declaration
public bool ShouldReply { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceEquals(DeltaPropagation)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(DeltaPropagation other)
Parameters
| Type | Name | Description |
|---|---|---|
| DeltaPropagation | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Edit this page