|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.japi.pf.FSMStopBuilder<S,D>
S
- the state typeD
- the data type
This is an EXPERIMENTAL feature and is subject to change until it has received more real world testing.public class FSMStopBuilder<S,D>
Builder used to create a partial function for FSM.onTermination(scala.PartialFunction
.
Constructor Summary | |
---|---|
FSMStopBuilder()
|
Method Summary | ||
---|---|---|
scala.PartialFunction<FSM.StopEvent<S,D>,scala.runtime.BoxedUnit> |
build()
Build a PartialFunction from this builder. |
|
|
stop(java.lang.Class<P> reasonType,
FI.TypedPredicate<P> predicate,
FI.UnitApply3<P,S,D> apply)
Add a case statement that matches on a reason type and a predicate. |
|
|
stop(java.lang.Class<P> reasonType,
FI.UnitApply3<P,S,D> apply)
Add a case statement that matches on a reason type. |
|
FSMStopBuilder<S,D> |
stop(FSM.Reason reason,
FI.UnitApply2<S,D> apply)
Add a case statement that matches on an FSM.Reason . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSMStopBuilder()
Method Detail |
---|
public FSMStopBuilder<S,D> stop(FSM.Reason reason, FI.UnitApply2<S,D> apply)
FSM.Reason
.
reason
- the reason for the terminationapply
- an action to apply to the event and state data if there is a match
public <P extends FSM.Reason> FSMStopBuilder<S,D> stop(java.lang.Class<P> reasonType, FI.UnitApply3<P,S,D> apply)
P
- the reason type to match onreasonType
- the reason type to match onapply
- an action to apply to the reason, event and state data if there is a match
public <P extends FSM.Reason> FSMStopBuilder<S,D> stop(java.lang.Class<P> reasonType, FI.TypedPredicate<P> predicate, FI.UnitApply3<P,S,D> apply)
P
- the reason type to match onreasonType
- the reason type to match onapply
- an action to apply to the reason, event and state data if there is a matchpredicate
- a predicate that will be evaluated on the reason if the type matches
public scala.PartialFunction<FSM.StopEvent<S,D>,scala.runtime.BoxedUnit> build()
PartialFunction
from this builder.
After this call the builder will be reset.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |