Package akka.persistence.typed.javadsl
Class EventHandlerBuilderByState$
- java.lang.Object
-
- akka.persistence.typed.javadsl.EventHandlerBuilderByState$
-
public class EventHandlerBuilderByState$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static EventHandlerBuilderByState$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description EventHandlerBuilderByState$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S extends State,State,Event>
EventHandlerBuilderByState<S,State,Event>builder(java.lang.Class<S> stateClass)
<State,Event>
EventHandlerBuilderByState<State,State,Event>builder(java.util.function.Predicate<State> statePredicate)
-
-
-
Field Detail
-
MODULE$
public static final EventHandlerBuilderByState$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
builder
public <S extends State,State,Event> EventHandlerBuilderByState<S,State,Event> builder(java.lang.Class<S> stateClass)
- Parameters:
stateClass
- The handlers defined by this builder are used when the state is an instance of thestateClass
- Returns:
- A new, mutable, EventHandlerBuilderByState
-
builder
public <State,Event> EventHandlerBuilderByState<State,State,Event> builder(java.util.function.Predicate<State> statePredicate)
- Parameters:
statePredicate
- The handlers defined by this builder are used when thestatePredicate
istrue
, useful for example when state type is an Optional- Returns:
- A new, mutable, EventHandlerBuilderByState
-
-