LWWRegisterT Class |
Namespace: Akka.DistributedData
[SerializableAttribute] public class LWWRegister<T> : IReplicatedData<LWWRegister<T>>, IReplicatedData, IReplicatedDataSerialization, IEquatable<LWWRegister<T>>
The LWWRegisterT type exposes the following members.
Name | Description | |
---|---|---|
LWWRegisterT(UniqueAddress, T) |
TBD
| |
LWWRegisterT(UniqueAddress, T, ClockT) |
TBD
| |
LWWRegisterT(UniqueAddress, T, Int64) |
TBD
|
Name | Description | |
---|---|---|
Timestamp |
Returns a timestamp used to determine precedence in current register updates.
| |
UpdatedBy |
Returns a unique address of the last cluster node, that updated current register value.
| |
Value |
Returns value of the current register.
|
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
Equals(LWWRegisterT) | Indicates whether the current object is equal to another object of the same type. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Merge(IReplicatedData) |
TBD
| |
Merge(LWWRegisterT) |
TBD
| |
ToString | Returns a string that represents the current object. (Overrides ObjectToString.) | |
WithValue |
Change the value of the register.
You can provide your clock implementation instead of using timestamps based
on DateTime.UtcNow.Ticks time. The timestamp can for example be an
increasing version number from a database record that is used for optimistic
concurrency control.
|
Name | Description | |
---|---|---|
DefaultClock |
Default clock is using max between DateTime.UtcNow.Ticks and current timestamp + 1.
| |
ReverseClock |
Reverse clock can be used for first-write-wins semantics. It's counting backwards,
using min between -DateTime.UtcNow.Ticks and current timestamp - 1.
|
Name | Description | |
---|---|---|
AsInstanceOfT |
TBD
(Defined by Extensions.) | |
Match | Overloaded.
Matches the specified target.
(Defined by PatternMatch.) | |
MatchT | Overloaded.
Matches the specified target and return a result of target processing.
(Defined by PatternMatch.) |