object CommandHandlerWithReplyBuilderByState
- Source
- CommandHandlerWithReply.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CommandHandlerWithReplyBuilderByState
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def builder[Command, State](statePredicate: Predicate[State]): CommandHandlerWithReplyBuilderByState[Command, 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, CommandHandlerWithReplyBuilderByState
- def builder[Command, S <: State, State](stateClass: Class[S]): CommandHandlerWithReplyBuilderByState[Command, S, State]
- stateClass
The handlers defined by this builder are used when the state is an instance of the
stateClass
- returns
A new, mutable, CommandHandlerWithReplyBuilderByState