Class

com.rbmhtechnology.eventuate

Snapshot

Related Doc: package eventuate

Permalink

case class Snapshot(payload: Any, emitterId: String, lastEvent: DurableEvent, currentTime: VectorTime, sequenceNr: Long, deliveryAttempts: Vector[DeliveryAttempt] = Vector.empty, persistOnEventRequests: Vector[PersistOnEventRequest] = Vector.empty) extends Product with Serializable

Provider API.

Snapshot storage format. EventsourcedActors, EventsourcedViews, stateful EventsourcedWriters and EventsourcedProcessors can save snapshots of internal state by calling the (inherited) EventsourcedView#save method.

payload

Application-specific snapshot.

emitterId

Id of the event-sourced actor, view, stateful writer or processor that saved the snapshot.

lastEvent

Last handled event before the snapshot was saved.

currentTime

Current vector time when the snapshot was saved.

sequenceNr

Sequence number of the last *received* event when the snapshot was saved.

deliveryAttempts

Unconfirmed DeliveryAttempts when the snapshot was saved (can only be non-empty if the actor implements ConfirmedDelivery).

persistOnEventRequests

Unconfirmed PersistOnEventRequests when the snapshot was saved (can only be non-empty if the actor implements PersistOnEvent).

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Snapshot
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Snapshot(payload: Any, emitterId: String, lastEvent: DurableEvent, currentTime: VectorTime, sequenceNr: Long, deliveryAttempts: Vector[DeliveryAttempt] = Vector.empty, persistOnEventRequests: Vector[PersistOnEventRequest] = Vector.empty)

    Permalink

    payload

    Application-specific snapshot.

    emitterId

    Id of the event-sourced actor, view, stateful writer or processor that saved the snapshot.

    lastEvent

    Last handled event before the snapshot was saved.

    currentTime

    Current vector time when the snapshot was saved.

    sequenceNr

    Sequence number of the last *received* event when the snapshot was saved.

    deliveryAttempts

    Unconfirmed DeliveryAttempts when the snapshot was saved (can only be non-empty if the actor implements ConfirmedDelivery).

    persistOnEventRequests

    Unconfirmed PersistOnEventRequests when the snapshot was saved (can only be non-empty if the actor implements PersistOnEvent).

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addDeliveryAttempt(deliveryAttempt: DeliveryAttempt): Snapshot

    Permalink
  5. def addPersistOnEventRequest(persistOnEventRequest: PersistOnEventRequest): Snapshot

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val currentTime: VectorTime

    Permalink

    Current vector time when the snapshot was saved.

  9. val deliveryAttempts: Vector[DeliveryAttempt]

    Permalink

    Unconfirmed DeliveryAttempts when the snapshot was saved (can only be non-empty if the actor implements ConfirmedDelivery).

  10. val emitterId: String

    Permalink

    Id of the event-sourced actor, view, stateful writer or processor that saved the snapshot.

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val lastEvent: DurableEvent

    Permalink

    Last handled event before the snapshot was saved.

  16. val metadata: SnapshotMetadata

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. val payload: Any

    Permalink

    Application-specific snapshot.

  21. val persistOnEventRequests: Vector[PersistOnEventRequest]

    Permalink

    Unconfirmed PersistOnEventRequests when the snapshot was saved (can only be non-empty if the actor implements PersistOnEvent).

  22. val sequenceNr: Long

    Permalink

    Sequence number of the last *received* event when the snapshot was saved.

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped