Packages

object UnpersistentBehavior

Source
UnpersistentBehavior.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UnpersistentBehavior
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def fromDurableState[Command, State](behavior: Behavior[Command]): UnpersistentBehavior[Command, Void, State]
  2. def fromDurableState[Command, State](behavior: Behavior[Command], initialState: State): UnpersistentBehavior[Command, Void, State]
  3. def fromEventSourced[Command, Event, State](behavior: Behavior[Command]): UnpersistentBehavior[Command, Event, State]
  4. def fromEventSourced[Command, Event, State](behavior: Behavior[Command], initialState: State, initialSequenceNr: Long): UnpersistentBehavior[Command, Event, State]

    Given an EventSourcedBehavior, produce a non-persistent Behavior which synchronously publishes events and snapshots for inspection.

    Given an EventSourcedBehavior, produce a non-persistent Behavior which synchronously publishes events and snapshots for inspection. State is updated as in the EventSourcedBehavior, and side effects are performed synchronously. The resulting Behavior is, contingent on the command handling, event handling, and side effects being compatible with the BehaviorTestKit, testable with the BehaviorTestKit.

    The returned Behavior does not intrinsically depend on configuration: it therefore does not serialize and assumes an unbounded stash for commands.

    behavior

    a (possibly wrapped) EventSourcedBehavior to serve as the basis for the unpersistent behavior

    initialState

    start the unpersistent behavior with this state; if null, behavior's initialState will be used

    initialSequenceNr

    start the unpersistent behavior with this sequence number; only applies if initialState is non-null

    returns

    an UnpersistentBehavior based on an EventSourcedBehavior