package event_sourced
- Alphabetic
- Public
- All
Type Members
-
trait
EventSourced extends AnyRef
The Entity service
-
final
case class
EventSourcedEvent(sequence: Long = 0L, payload: Option[Any] = _root_.scala.None) extends GeneratedMessage with Message[EventSourcedEvent] with Updatable[EventSourcedEvent] with Product with Serializable
An event.
An event. These will be sent to the entity when the entity starts up.
- sequence
The sequence number of the event.
- payload
The event payload.
- Annotations
- @SerialVersionUID()
-
final
case class
EventSourcedInit(serviceName: String = "", entityId: String = "", snapshot: Option[EventSourcedSnapshot] = _root_.scala.None) extends GeneratedMessage with Message[EventSourcedInit] with Updatable[EventSourcedInit] with Product with Serializable
The init message.
The init message. This will always be the first message sent to the entity when it is loaded.
- entityId
The ID of the entity.
- snapshot
If present the entity should initialise its state using this snapshot.
- Annotations
- @SerialVersionUID()
-
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) extends GeneratedMessage with Message[EventSourcedReply] with Updatable[EventSourcedReply] with Product with Serializable
A reply to a command.
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.
- Annotations
- @SerialVersionUID()
-
final
case class
EventSourcedSnapshot(snapshotSequence: Long = 0L, snapshot: Option[Any] = _root_.scala.None) extends GeneratedMessage with Message[EventSourcedSnapshot] with Updatable[EventSourcedSnapshot] with Product with Serializable
A snapshot
A snapshot
- snapshotSequence
The sequence number when the snapshot was taken.
- snapshot
The snapshot.
- Annotations
- @SerialVersionUID()
-
final
case class
EventSourcedStreamIn(message: Message = ...) extends GeneratedMessage with Message[EventSourcedStreamIn] with Updatable[EventSourcedStreamIn] with Product with Serializable
Input message type for the gRPC stream in.
Input message type for the gRPC stream in.
- Annotations
- @SerialVersionUID()
-
final
case class
EventSourcedStreamOut(message: Message = ...) extends GeneratedMessage with Message[EventSourcedStreamOut] with Updatable[EventSourcedStreamOut] with Product with Serializable
Output message type for the gRPC stream out.
Output message type for the gRPC stream out.
- Annotations
- @SerialVersionUID()
Value Members
- object EventSourced
- object EventSourcedEvent extends GeneratedMessageCompanion[EventSourcedEvent] with Serializable
- object EventSourcedHandler
- object EventSourcedInit extends GeneratedMessageCompanion[EventSourcedInit] with Serializable
- object EventSourcedProto extends GeneratedFileObject
- object EventSourcedReply extends GeneratedMessageCompanion[EventSourcedReply] with Serializable
- object EventSourcedSnapshot extends GeneratedMessageCompanion[EventSourcedSnapshot] with Serializable
- object EventSourcedStreamIn extends GeneratedMessageCompanion[EventSourcedStreamIn] with Serializable
- object EventSourcedStreamOut extends GeneratedMessageCompanion[EventSourcedStreamOut] with Serializable