|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectakka.actor.FSM.State<S,D>
public static class FSM.State<S,D>
This captures all of the managed state of the FSM
: the state
name, the state data, possibly custom timeout, stop reason and replies
accumulated while processing the last message.
Constructor Summary | |
---|---|
FSM.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)
|
Method Summary | |
---|---|
FSM.State<S,D> |
forMax(scala.concurrent.duration.Duration timeout)
Modify state transition descriptor to include a state timeout for the next state. |
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 nextStateDate)
Modify state transition descriptor with new state data. |
FSM.State<S,D> |
withStopReason(FSM.Reason reason)
INTERNAL API. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface scala.Product |
---|
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
---|
canEqual, equals |
Constructor Detail |
---|
public FSM.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)
Method Detail |
---|
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 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 nextStateDate)
nextStateDate
- (undocumented)
public FSM.State<S,D> withStopReason(FSM.Reason reason)
reason
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |