Package akka.japi.pf

Class FSMTransitionHandlerBuilder<S>

    • Constructor Detail

      • FSMTransitionHandlerBuilder

        public FSMTransitionHandlerBuilder()
    • Method Detail

      • state

        public FSMTransitionHandlerBuilder<S> state​(S fromState,
                                                    S toState,
                                                    FI.UnitApplyVoid apply)
        Add a case statement that matches on a from state and a to state.
        Parameters:
        fromState - the from state to match on, or null for any
        toState - the to state to match on, or null for any
        apply - an action to apply when the states match
        Returns:
        the builder with the case statement added
      • state

        public FSMTransitionHandlerBuilder<S> state​(S fromState,
                                                    S toState,
                                                    FI.UnitApply2<S,​S> apply)
        Add a case statement that matches on a from state and a to state.
        Parameters:
        fromState - the from state to match on, or null for any
        toState - the to state to match on, or null for any
        apply - an action to apply when the states match
        Returns:
        the builder with the case statement added
      • build

        public scala.PartialFunction<scala.Tuple2<S,​S>,​scala.runtime.BoxedUnit> build()
        Build a PartialFunction from this builder. After this call the builder will be reset.
        Returns:
        a PartialFunction for this builder.