o
akka.persistence.typed.javadsl
CommandHandlerBuilderByState
Companion class CommandHandlerBuilderByState
object CommandHandlerBuilderByState
- Source
- CommandHandler.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CommandHandlerBuilderByState
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def builder[Command, Event, State](statePredicate: Predicate[State]): CommandHandlerBuilderByState[Command, Event, State, State]
- statePredicate
The handlers defined by this builder are used when the
statePredicate
istrue
, useful for example when state type is an Optional- returns
A new, mutable, CommandHandlerBuilderByState
- def builder[Command, Event, S <: State, State](stateClass: Class[S]): CommandHandlerBuilderByState[Command, Event, S, State]
- stateClass
The handlers defined by this builder are used when the state is an instance of the
stateClass
- returns
A new, mutable, CommandHandlerBuilderByState