Class UnpersistentBehavior$
- java.lang.Object
-
- akka.persistence.testkit.scaladsl.UnpersistentBehavior$
-
public class UnpersistentBehavior$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static UnpersistentBehavior$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description UnpersistentBehavior$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Command,State>
UnpersistentBehavior.DurableState<Command,State>fromDurableState(Behavior<Command> behavior, scala.Option<State> initialState)
<Command,State>
scala.None$fromDurableState$default$2()
<Command,Event,State>
UnpersistentBehavior.EventSourced<Command,Event,State>fromEventSourced(Behavior<Command> behavior, scala.Option<scala.Tuple2<State,java.lang.Object>> initialStateAndSequenceNr)
Given an EventSourcedBehavior, produce a non-persistent Behavior which synchronously publishes events and snapshots for inspection.<Command,Event,State>
UnpersistentBehavior.EventSourced<Command,Event,State>fromEventSourced(Behavior<Command> behavior, State initialState)
<Command,Event,State>
scala.None$fromEventSourced$default$2()
-
-
-
Field Detail
-
MODULE$
public static final UnpersistentBehavior$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
fromEventSourced
public <Command,Event,State> UnpersistentBehavior.EventSourced<Command,Event,State> fromEventSourced(Behavior<Command> behavior, scala.Option<scala.Tuple2<State,java.lang.Object>> initialStateAndSequenceNr)
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.
-
fromEventSourced
public <Command,Event,State> UnpersistentBehavior.EventSourced<Command,Event,State> fromEventSourced(Behavior<Command> behavior, State initialState)
-
fromEventSourced$default$2
public <Command,Event,State> scala.None$ fromEventSourced$default$2()
-
fromDurableState
public <Command,State> UnpersistentBehavior.DurableState<Command,State> fromDurableState(Behavior<Command> behavior, scala.Option<State> initialState)
-
fromDurableState$default$2
public <Command,State> scala.None$ fromDurableState$default$2()
-
-