Package akka.persistence.typed.javadsl
Class CommandHandlerBuilderByState$
- java.lang.Object
-
- akka.persistence.typed.javadsl.CommandHandlerBuilderByState$
-
public class CommandHandlerBuilderByState$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static CommandHandlerBuilderByState$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description CommandHandlerBuilderByState$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Command,Event,S extends State,State>
CommandHandlerBuilderByState<Command,Event,S,State>builder(java.lang.Class<S> stateClass)
<Command,Event,State>
CommandHandlerBuilderByState<Command,Event,State,State>builder(java.util.function.Predicate<State> statePredicate)
-
-
-
Field Detail
-
MODULE$
public static final CommandHandlerBuilderByState$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
builder
public <Command,Event,S extends State,State> CommandHandlerBuilderByState<Command,Event,S,State> 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, CommandHandlerBuilderByState
-
builder
public <Command,Event,State> CommandHandlerBuilderByState<Command,Event,State,State> 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, CommandHandlerBuilderByState
-
-