Package org.apache.pekko.actor
Class FSM.State<S,D>
java.lang.Object
org.apache.pekko.actor.FSM.State<S,D>
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
- Direct Known Subclasses:
FSM.SilentState
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionState
(S stateName, D stateData, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, scala.Option<FSM.Reason> stopReason, scala.collection.immutable.List<Object> replies) -
Method Summary
Modifier and TypeMethodDescriptionboolean
copy
(S stateName, D stateData, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, scala.Option<FSM.Reason> stopReason, scala.collection.immutable.List<Object> replies) scala.Option<scala.concurrent.duration.FiniteDuration>
scala.Option<FSM.Reason>
scala.collection.immutable.List<Object>
boolean
JAVA API: Modify state transition descriptor to include a state timeout for the next state.forMax
(scala.concurrent.duration.Duration timeout) Modify state transition descriptor to include a state timeout for the next state.int
productElement
(int n) scala.collection.immutable.List<Object>
replies()
Send reply to sender of the current message, if available.scala.Option<FSM.Reason>
scala.Option<scala.concurrent.duration.FiniteDuration>
timeout()
Modify state transition descriptor with new state data.Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Product
productElementName, productElementNames, productIterator
-
Constructor Details
-
State
public State(S stateName, D stateData, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, scala.Option<FSM.Reason> stopReason, scala.collection.immutable.List<Object> replies)
-
-
Method Details
-
stateName
-
stateData
-
timeout
public scala.Option<scala.concurrent.duration.FiniteDuration> timeout() -
stopReason
-
replies
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
equals
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
copy
-
copy$default$1
-
copy$default$2
-
copy$default$3
public scala.Option<scala.concurrent.duration.FiniteDuration> copy$default$3() -
copy$default$4
-
copy$default$5
-
forMax
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.
-
forMax
JAVA API: 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.
-
replying
Send reply to sender of the current message, if available.- Returns:
- this state transition descriptor
-
using
Modify state transition descriptor with new state data. The data will be set when transitioning to the new state.
-