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