Result type for conditional write operations (setIfChanged, setIfNewer).
Type Parameters
Type Parameter
T
Properties
Property
Type
Description
changed
boolean
Whether the content differed from what was previously stored. Independent of written: a newer setIfNewer event with identical content yields written=true, changed=false.
previousState
T
The value that was stored before this operation, or null if no previous value existed.
storedState
T
The value currently stored after this operation (may be the previously stored value if write was rejected).
superseded
boolean
Whether the write was rejected because a newer-or-equal (ordering scope, sequence) was already stored. Only applicable for setIfNewer; always false for setIfChanged.
written
boolean
Whether a write to storage occurred. For setIfNewer this is true whenever the event won the ordering gate — INCLUDING when the stored content was identical but the event was newer (the watermark still advances).