Class CommandHandlerWithReplyBuilderByState$
java.lang.Object
org.apache.pekko.persistence.typed.state.javadsl.CommandHandlerWithReplyBuilderByState$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandHandlerWithReplyBuilderByState$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<Command,S extends State, State>
CommandHandlerWithReplyBuilderByState<Command,S, State> <Command,State>
CommandHandlerWithReplyBuilderByState<Command,State, State>
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
CommandHandlerWithReplyBuilderByState$
public CommandHandlerWithReplyBuilderByState$()
-
-
Method Details
-
builder
public <Command,S extends State, CommandHandlerWithReplyBuilderByState<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, CommandHandlerWithReplyBuilderByState
-
builder
public <Command,State> CommandHandlerWithReplyBuilderByState<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, CommandHandlerWithReplyBuilderByState
-