Packages

p

io.cloudstate.protocol

event_sourced

package event_sourced

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait EventSourced extends AnyRef

    The Entity service

  2. 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()
  3. 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()
  4. 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()
  5. 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()
  6. 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()
  7. 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

  1. object EventSourced
  2. object EventSourcedEvent extends GeneratedMessageCompanion[EventSourcedEvent] with Serializable
  3. object EventSourcedHandler
  4. object EventSourcedInit extends GeneratedMessageCompanion[EventSourcedInit] with Serializable
  5. object EventSourcedProto extends GeneratedFileObject
  6. object EventSourcedReply extends GeneratedMessageCompanion[EventSourcedReply] with Serializable
  7. object EventSourcedSnapshot extends GeneratedMessageCompanion[EventSourcedSnapshot] with Serializable
  8. object EventSourcedStreamIn extends GeneratedMessageCompanion[EventSourcedStreamIn] with Serializable
  9. object EventSourcedStreamOut extends GeneratedMessageCompanion[EventSourcedStreamOut] with Serializable

Ungrouped