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