Package akka.persistence.fsm.japi.pf
Class FSMStopBuilder<S,D>
- java.lang.Object
-
- akka.persistence.fsm.japi.pf.FSMStopBuilder<S,D>
-
- Type Parameters:
S
- the state typeD
- the data type
@Deprecated public class FSMStopBuilder<S,D> extends java.lang.Object
Deprecated.use EventSourcedBehavior since 2.6.0Builder used to create a partial function forFSM.onTermination(scala.PartialFunction<akka.actor.FSM.StopEvent<S, D>, scala.runtime.BoxedUnit>)
.
-
-
Constructor Summary
Constructors Constructor Description FSMStopBuilder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description scala.PartialFunction<PersistentFSM.StopEvent<S,D>,scala.runtime.BoxedUnit>
build()
Deprecated.Build aPartialFunction
from this builder.FSMStopBuilder<S,D>
stop(PersistentFSM.Reason reason, FI.UnitApply2<S,D> apply)
Deprecated.Add a case statement that matches on anFSM.Reason
.<P extends PersistentFSM.Reason>
FSMStopBuilder<S,D>stop(java.lang.Class<P> reasonType, FI.TypedPredicate<P> predicate, FI.UnitApply3<P,S,D> apply)
Deprecated.Add a case statement that matches on a reason type and a predicate.<P extends PersistentFSM.Reason>
FSMStopBuilder<S,D>stop(java.lang.Class<P> reasonType, FI.UnitApply3<P,S,D> apply)
Deprecated.Add a case statement that matches on a reason type.
-
-
-
Method Detail
-
stop
public FSMStopBuilder<S,D> stop(PersistentFSM.Reason reason, FI.UnitApply2<S,D> apply)
Deprecated.Add a case statement that matches on anFSM.Reason
.- Parameters:
reason
- the reason for the terminationapply
- an action to apply to the event and state data if there is a match- Returns:
- the builder with the case statement added
-
stop
public <P extends PersistentFSM.Reason> FSMStopBuilder<S,D> stop(java.lang.Class<P> reasonType, FI.UnitApply3<P,S,D> apply)
Deprecated.Add a case statement that matches on a reason type.- Type Parameters:
P
- the reason type to match on- Parameters:
reasonType
- the reason type to match onapply
- an action to apply to the reason, event and state data if there is a match- Returns:
- the builder with the case statement added
-
stop
public <P extends PersistentFSM.Reason> FSMStopBuilder<S,D> stop(java.lang.Class<P> reasonType, FI.TypedPredicate<P> predicate, FI.UnitApply3<P,S,D> apply)
Deprecated.Add a case statement that matches on a reason type and a predicate.- Type Parameters:
P
- the reason type to match on- Parameters:
reasonType
- the reason type to match onapply
- an action to apply to the reason, event and state data if there is a matchpredicate
- a predicate that will be evaluated on the reason if the type matches- Returns:
- the builder with the case statement added
-
build
public scala.PartialFunction<PersistentFSM.StopEvent<S,D>,scala.runtime.BoxedUnit> build()
Deprecated.Build aPartialFunction
from this builder. After this call the builder will be reset.- Returns:
- a PartialFunction for this builder.
-
-