Skip to content
Browse files

Add update_version to events (#935)

  • Loading branch information...
qelper committed Apr 18, 2019
1 parent 0915372 commit 739db16aa650d6286a2c656e64def0f61ac2bcd7
Showing with 8 additions and 0 deletions.
  1. +8 −0 misk-events/src/main/kotlin/misk/events/Event.kt
@@ -19,6 +19,14 @@ data class Event(
/** a global unique id for the event */
val id: ByteString,

* Events often represent a stream of state changes or entity updates; the update_version
* can be used to indicate the version of the updated entity or state machine at the time
* the event was generated. Legacy events may not have this field populated. New events
* must specify this for true ordering and race prevention.
val updateVersion: Long? = null,

* The id of the entity to which the event is referencing. Many but not all events
* are correlated with a specific entity; if this event is related to an entity,

0 comments on commit 739db16

Please sign in to comment.
You can’t perform that action at this time.