Packages

c

akka.japi.pf

FSMStopBuilder

class FSMStopBuilder[S, D] extends AnyRef

Builder used to create a partial function for akka.actor.FSM#onTermination.

Source
FSMStopBuilder.java
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FSMStopBuilder
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FSMStopBuilder()

Value Members

  1. 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.

  2. 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

  3. 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

  4. 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