Class CommandHandlerBuilderByState$
- java.lang.Object
-
- akka.persistence.typed.state.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,S extends State,State>
CommandHandlerBuilderByState<Command,S,State>builder(java.lang.Class<S> stateClass)
<Command,State>
CommandHandlerBuilderByState<Command,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,S extends State,State> CommandHandlerBuilderByState<Command,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,State> CommandHandlerBuilderByState<Command,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
-
-