Class CommandHandlerBuilderByState$
java.lang.Object
org.apache.pekko.persistence.typed.state.javadsl.CommandHandlerBuilderByState$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandHandlerBuilderByState$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<Command,S extends State, State>
CommandHandlerBuilderByState<Command,S, State> <Command,State>
CommandHandlerBuilderByState<Command,State, State>
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
CommandHandlerBuilderByState$
public CommandHandlerBuilderByState$()
-
-
Method Details
-
builder
public <Command,S extends State, CommandHandlerBuilderByState<Command,State> S, builderState> (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, builderState> (Predicate<State> statePredicate) - Parameters:
statePredicate- The handlers defined by this builder are used when thestatePredicateistrue, useful for example when state type is an Optional- Returns:
- A new, mutable, CommandHandlerBuilderByState
-