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
- Alphabetic
- By Inheritance
- EventSourcedReply
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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
- 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()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllEvents(__vs: Iterable[Any]): EventSourcedReply
- def addAllSideEffects(__vs: Iterable[SideEffect]): EventSourcedReply
- def addEvents(__vs: Any*): EventSourcedReply
- def addSideEffects(__vs: SideEffect*): EventSourcedReply
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearClientAction: EventSourcedReply
- def clearDelete: EventSourcedReply
- def clearEvents: EventSourcedReply
- def clearSideEffects: EventSourcedReply
- def clearSnapshot: EventSourcedReply
- val clientAction: Option[ClientAction]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val commandId: Long
- def companion: EventSourcedReply.type
- Definition Classes
- EventSourcedReply → GeneratedMessage
- val delete: Option[Duration]
- def discardUnknownFields: EventSourcedReply
- 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
- 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
- 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
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val events: Seq[Any]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getClientAction: ClientAction
- def getDelete: Duration
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- EventSourcedReply → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- EventSourcedReply → GeneratedMessage
- def getSnapshot: Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def serializedSize: Int
- Definition Classes
- EventSourcedReply → GeneratedMessage
- val sideEffects: Seq[SideEffect]
- val snapshot: Option[Any]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
- final def toByteString: ByteString
- Definition Classes
- GeneratedMessage
- final def toPMessage: PMessage
- Definition Classes
- GeneratedMessage
- def toProtoString: String
- Definition Classes
- EventSourcedReply → GeneratedMessage
- val unknownFields: UnknownFieldSet
- def update(ms: (Lens[EventSourcedReply, EventSourcedReply]) => Mutation[EventSourcedReply]*): EventSourcedReply
- Definition Classes
- Updatable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withClientAction(__v: ClientAction): EventSourcedReply
- def withCommandId(__v: Long): EventSourcedReply
- def withDelete(__v: Duration): EventSourcedReply
- def withEvents(__v: Seq[Any]): EventSourcedReply
- def withSideEffects(__v: Seq[SideEffect]): EventSourcedReply
- def withSnapshot(__v: Any): EventSourcedReply
- def withUnknownFields(__v: UnknownFieldSet): EventSourcedReply
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- EventSourcedReply → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- 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 ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- 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.