Class CommandHandlerWithReplyBuilderByState$
java.lang.Object
org.apache.pekko.persistence.typed.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,Event, S extends State, State>
CommandHandlerWithReplyBuilderByState<Command,Event, S, State> <Command,Event, State>
CommandHandlerWithReplyBuilderByState<Command,Event, 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,Event, CommandHandlerWithReplyBuilderByState<Command,S extends State, State> Event, builderS, State> (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,Event, CommandHandlerWithReplyBuilderByState<Command,State> Event, builderState, State> (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
-