public static class FSM.State<S,D>
extends java.lang.Object
implements scala.Product, scala.Serializable
FSM
: the state
name, the state data, possibly custom timeout, stop reason and replies
accumulated while processing the last message.Constructor and Description |
---|
State(S stateName,
D stateData,
scala.Option<scala.concurrent.duration.FiniteDuration> timeout,
scala.Option<FSM.Reason> stopReason,
scala.collection.immutable.List<java.lang.Object> replies) |
Modifier and Type | Method and Description |
---|---|
FSM.State<S,D> |
copy(S stateName,
D stateData,
scala.Option<scala.concurrent.duration.FiniteDuration> timeout,
scala.Option<FSM.Reason> stopReason,
scala.collection.immutable.List<java.lang.Object> replies) |
FSM.State<S,D> |
forMax(scala.concurrent.duration.Duration timeout)
Modify state transition descriptor to include a state timeout for the
next state.
|
boolean |
notifies()
INTERNAL API
|
scala.collection.immutable.List<java.lang.Object> |
replies() |
FSM.State<S,D> |
replying(java.lang.Object replyValue)
Send reply to sender of the current message, if available.
|
D |
stateData() |
S |
stateName() |
scala.Option<FSM.Reason> |
stopReason() |
scala.Option<scala.concurrent.duration.FiniteDuration> |
timeout() |
FSM.State<S,D> |
using(D nextStateData)
Modify state transition descriptor with new state data.
|
FSM.State<S,D> |
withNotification(boolean notifies)
INTERNAL API.
|
FSM.State<S,D> |
withStopReason(FSM.Reason reason)
INTERNAL API.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public State(S stateName, D stateData, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, scala.Option<FSM.Reason> stopReason, scala.collection.immutable.List<java.lang.Object> replies)
public S stateName()
public D stateData()
public scala.Option<scala.concurrent.duration.FiniteDuration> timeout()
public scala.Option<FSM.Reason> stopReason()
public scala.collection.immutable.List<java.lang.Object> replies()
public boolean notifies()
public FSM.State<S,D> copy(S stateName, D stateData, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, scala.Option<FSM.Reason> stopReason, scala.collection.immutable.List<java.lang.Object> replies)
public FSM.State<S,D> forMax(scala.concurrent.duration.Duration timeout)
Use Duration.Inf to deactivate an existing timeout.
timeout
- (undocumented)public FSM.State<S,D> replying(java.lang.Object replyValue)
replyValue
- (undocumented)public FSM.State<S,D> using(D nextStateData)
nextStateData
- (undocumented)public FSM.State<S,D> withStopReason(FSM.Reason reason)
reason
- (undocumented)