t

akka.persistence.typed

SnapshotAdapter

trait SnapshotAdapter[State] extends AnyRef

Facility to convert snapshots from and to a specialized data model. Can be used when migration from different state types e.g. when migration from Persistent FSM to Typed EventSourcedBehavior.

State

The state type of the EventSourcedBehavior

Source
SnapshotAdapter.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SnapshotAdapter
  2. AnyRef
  3. 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

Abstract Value Members

  1. abstract def fromJournal(from: Any): State

    Transform the stored state into the current state type.

    Transform the stored state into the current state type. Can be used for migrations from different serialized state types.

  2. abstract def toJournal(state: State): Any

    Transform the state to a different type before sending to the journal.