class FSMStopBuilder[S, D] extends AnyRef
Builder used to create a partial function for akka.actor.FSM#onTermination
.
- Source
- FSMStopBuilder.java
- Alphabetic
- By Inheritance
- FSMStopBuilder
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FSMStopBuilder()
Value Members
-
def
build(): PartialFunction[StopEvent[S, D], BoxedUnit]
Build a
scala.PartialFunction
from this builder.Build a
scala.PartialFunction
from this builder. After this call the builder will be reset.- returns
a PartialFunction for this builder.
-
def
stop[P <: Reason](reasonType: Class[P], predicate: TypedPredicate[P], apply: UnitApply3[P, S, D]): FSMStopBuilder[S, D]
Add a case statement that matches on a reason type and a predicate.
Add a case statement that matches on a reason type and a predicate.
- reasonType
the reason type to match on
- predicate
a predicate that will be evaluated on the reason if the type matches
- apply
an action to apply to the reason, event and state data if there is a match
- returns
the builder with the case statement added
-
def
stop[P <: Reason](reasonType: Class[P], apply: UnitApply3[P, S, D]): FSMStopBuilder[S, D]
Add a case statement that matches on a reason type.
Add a case statement that matches on a reason type.
- reasonType
the reason type to match on
- apply
an action to apply to the reason, event and state data if there is a match
- returns
the builder with the case statement added
-
def
stop(reason: Reason, apply: UnitApply2[S, D]): FSMStopBuilder[S, D]
Add a case statement that matches on an
FSM.Reason
.Add a case statement that matches on an
FSM.Reason
.- reason
the reason for the termination
- apply
an action to apply to the event and state data if there is a match
- returns
the builder with the case statement added