final case class EventSourcedReply(commandId: Long = 0L, clientAction: Option[ClientAction] = _root_.scala.None, sideEffects: Seq[SideEffect] = _root_.scala.Seq.empty, events: Seq[Any] = _root_.scala.Seq.empty, snapshot: Option[Any] = _root_.scala.None, delete: Option[Duration] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[EventSourcedReply] with Product with Serializable

A reply to a command.

commandId

The id of the command being replied to. Must match the input command.

clientAction

The action to take

sideEffects

Any side effects to perform

events

A list of events to persist - these will be persisted before the reply is sent.

snapshot

An optional snapshot to persist. It is assumed that this snapshot will have the state of any events in the events field applied to it. It is illegal to send a snapshot without sending any events.

delete

Mark the entity for deletion. Events and snapshots will be deleted later to give downstream consumers time to process all prior events, including any final deleted event. The EventSourcedReply may optionally also include events and snapshot.

Annotations
@SerialVersionUID()
Source
EventSourcedReply.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventSourcedReply
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new EventSourcedReply(commandId: Long = 0L, clientAction: Option[ClientAction] = _root_.scala.None, sideEffects: Seq[SideEffect] = _root_.scala.Seq.empty, events: Seq[Any] = _root_.scala.Seq.empty, snapshot: Option[Any] = _root_.scala.None, delete: Option[Duration] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    commandId

    The id of the command being replied to. Must match the input command.

    clientAction

    The action to take

    sideEffects

    Any side effects to perform

    events

    A list of events to persist - these will be persisted before the reply is sent.

    snapshot

    An optional snapshot to persist. It is assumed that this snapshot will have the state of any events in the events field applied to it. It is illegal to send a snapshot without sending any events.

    delete

    Mark the entity for deletion. Events and snapshots will be deleted later to give downstream consumers time to process all prior events, including any final deleted event. The EventSourcedReply may optionally also include events and snapshot.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toany2stringadd[EventSourcedReply] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (EventSourcedReply, B)
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toArrowAssoc[EventSourcedReply] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def addAllEvents(__vs: Iterable[Any]): EventSourcedReply
  7. def addAllSideEffects(__vs: Iterable[SideEffect]): EventSourcedReply
  8. def addEvents(__vs: Any*): EventSourcedReply
  9. def addSideEffects(__vs: SideEffect*): EventSourcedReply
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clearClientAction: EventSourcedReply
  12. def clearDelete: EventSourcedReply
  13. def clearEvents: EventSourcedReply
  14. def clearSideEffects: EventSourcedReply
  15. def clearSnapshot: EventSourcedReply
  16. val clientAction: Option[ClientAction]
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  18. val commandId: Long
  19. def companion: EventSourcedReply.type
    Definition Classes
    EventSourcedReply → GeneratedMessage
  20. val delete: Option[Duration]
  21. def discardUnknownFields: EventSourcedReply
  22. def ensuring(cond: (EventSourcedReply) => Boolean, msg: => Any): EventSourcedReply
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toEnsuring[EventSourcedReply] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: (EventSourcedReply) => Boolean): EventSourcedReply
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toEnsuring[EventSourcedReply] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: Boolean, msg: => Any): EventSourcedReply
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toEnsuring[EventSourcedReply] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. def ensuring(cond: Boolean): EventSourcedReply
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toEnsuring[EventSourcedReply] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. val events: Seq[Any]
  28. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def getClientAction: ClientAction
  30. def getDelete: Duration
  31. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    EventSourcedReply → GeneratedMessage
  32. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    EventSourcedReply → GeneratedMessage
  33. def getSnapshot: Any
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. def productElementNames: Iterator[String]
    Definition Classes
    Product
  39. def serializedSize: Int
    Definition Classes
    EventSourcedReply → GeneratedMessage
  40. val sideEffects: Seq[SideEffect]
  41. val snapshot: Option[Any]
  42. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  43. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  44. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  45. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  46. def toProtoString: String
    Definition Classes
    EventSourcedReply → GeneratedMessage
  47. val unknownFields: UnknownFieldSet
  48. def update(ms: (Lens[EventSourcedReply, EventSourcedReply]) => Mutation[EventSourcedReply]*): EventSourcedReply
    Definition Classes
    Updatable
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. def withClientAction(__v: ClientAction): EventSourcedReply
  53. def withCommandId(__v: Long): EventSourcedReply
  54. def withDelete(__v: Duration): EventSourcedReply
  55. def withEvents(__v: Seq[Any]): EventSourcedReply
  56. def withSideEffects(__v: Seq[SideEffect]): EventSourcedReply
  57. def withSnapshot(__v: Any): EventSourcedReply
  58. def withUnknownFields(__v: UnknownFieldSet): EventSourcedReply
  59. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  60. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    EventSourcedReply → GeneratedMessage
  61. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toStringFormat[EventSourcedReply] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (EventSourcedReply, B)
    Implicit
    This member is added by an implicit conversion from EventSourcedReply toArrowAssoc[EventSourcedReply] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromEventSourcedReply to any2stringadd[EventSourcedReply]

Inherited by implicit conversion StringFormat fromEventSourcedReply to StringFormat[EventSourcedReply]

Inherited by implicit conversion Ensuring fromEventSourcedReply to Ensuring[EventSourcedReply]

Inherited by implicit conversion ArrowAssoc fromEventSourcedReply to ArrowAssoc[EventSourcedReply]

Ungrouped