* =per #19688 [2.4.1][PersistentFSM] getting StateTimeout for state without timeout after restart * Added deprecation warning
This commit is contained in:
parent
3d9065309c
commit
e0af113f17
2 changed files with 5 additions and 7 deletions
|
|
@ -301,15 +301,15 @@ trait PersistentFSMBase[S, D, E] extends Actor with Listeners with ActorLogging
|
|||
handleEvent = stateFunction orElse handleEventDefault
|
||||
|
||||
/**
|
||||
* Verify existence of initial state and setup timers. This should be the
|
||||
* last call within the constructor, or [[akka.actor.Actor#preStart]] and
|
||||
* [[akka.actor.Actor#postRestart]].
|
||||
* Verify existence of initial state and setup timers. Used in [[akka.persistence.fsm.PersistentFSM]]
|
||||
* on recovery.
|
||||
*
|
||||
* An initial `currentState -> currentState` notification will be triggered by calling this method.
|
||||
*
|
||||
* @see [[#startWith]]
|
||||
* @see [[akka.persistence.fsm.PersistentFSM#receiveRecover]]
|
||||
*/
|
||||
final def initialize(): Unit =
|
||||
@deprecated("Removed from API, called internally", "2.4.5")
|
||||
private[akka] final def initialize(): Unit =
|
||||
if (currentState != null) makeTransition(currentState)
|
||||
else throw new IllegalStateException("You must call `startWith` before calling `initialize`")
|
||||
|
||||
|
|
|
|||
|
|
@ -568,8 +568,6 @@ public class AbstractPersistentFSMTest extends JUnitSuite {
|
|||
matchEvent(Leave.class, (event, data) -> stop())
|
||||
.event(GetCurrentCart.class, (event, data) -> stay().replying(data))
|
||||
);
|
||||
|
||||
initialize();
|
||||
//#customer-fsm-body
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue