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