case class State[S, D](stateName: S, stateData: D, timeout: Option[FiniteDuration] = None, stopReason: Option[Reason] = None, replies: List[Any] = Nil) extends Product with Serializable
This captures all of the managed state of the akka.actor.FSM: the state name, the state data, possibly custom timeout, stop reason and replies accumulated while processing the last message.
- Source
- FSM.scala
- Alphabetic
- By Inheritance
- State
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
- def copy(stateName: S = stateName, stateData: D = stateData, timeout: Option[FiniteDuration] = timeout, stopReason: Option[Reason] = stopReason, replies: List[Any] = replies): State[S, D]
-
def
forMax(timeout: Duration): State[S, D]
Modify state transition descriptor to include a state timeout for the next state.
Modify state transition descriptor to include a state timeout for the next state. This timeout overrides any default timeout set for the next state.
Use Duration.Inf to deactivate an existing timeout.
- val replies: List[Any]
-
def
replying(replyValue: Any): State[S, D]
Send reply to sender of the current message, if available.
Send reply to sender of the current message, if available.
- returns
this state transition descriptor
- val stateData: D
- val stateName: S
- val stopReason: Option[Reason]
- val timeout: Option[FiniteDuration]
-
def
using(nextStateData: D): State[S, D]
Modify state transition descriptor with new state data.
Modify state transition descriptor with new state data. The data will be set when transitioning to the new state.