Package akka.testkit

Class TestFSMRef<S,​D,​T extends Actor>

    • Constructor Detail

      • TestFSMRef

        public TestFSMRef​(ActorSystem system,
                          Props props,
                          ActorRef supervisor,
                          java.lang.String name,
                          scala.Predef.$less$colon$less<T,​FSM<S,​D>> ev)
    • Method Detail

      • apply

        public static <S,​D,​T extends ActorTestFSMRef<S,​D,​T> apply​(scala.Function0<T> factory,
                                                                                            scala.reflect.ClassTag<T> evidence$1,
                                                                                            scala.Predef.$less$colon$less<T,​FSM<S,​D>> ev,
                                                                                            ActorSystem system)
      • apply

        public static <S,​D,​T extends ActorTestFSMRef<S,​D,​T> apply​(scala.Function0<T> factory,
                                                                                            java.lang.String name,
                                                                                            scala.reflect.ClassTag<T> evidence$2,
                                                                                            scala.Predef.$less$colon$less<T,​FSM<S,​D>> ev,
                                                                                            ActorSystem system)
      • apply

        public static <S,​D,​T extends ActorTestFSMRef<S,​D,​T> apply​(scala.Function0<T> factory,
                                                                                            ActorRef supervisor,
                                                                                            java.lang.String name,
                                                                                            scala.reflect.ClassTag<T> evidence$3,
                                                                                            scala.Predef.$less$colon$less<T,​FSM<S,​D>> ev,
                                                                                            ActorSystem system)
      • apply

        public static <S,​D,​T extends ActorTestFSMRef<S,​D,​T> apply​(scala.Function0<T> factory,
                                                                                            ActorRef supervisor,
                                                                                            scala.reflect.ClassTag<T> evidence$4,
                                                                                            scala.Predef.$less$colon$less<T,​FSM<S,​D>> ev,
                                                                                            ActorSystem system)
      • stateName

        public S stateName()
        Get current state name of this FSM.
        Returns:
        (undocumented)
      • stateData

        public D stateData()
        Get current state data of this FSM.
        Returns:
        (undocumented)
      • setState

        public void setState​(S stateName,
                             D stateData,
                             scala.concurrent.duration.FiniteDuration timeout,
                             scala.Option<FSM.Reason> stopReason)
        Change FSM state; any value left out defaults to the current FSM state (timeout defaults to None). This method is directly equivalent to a corresponding transition initiated from within the FSM, including timeout and stop handling.
        Parameters:
        stateName - (undocumented)
        stateData - (undocumented)
        timeout - (undocumented)
        stopReason - (undocumented)
      • setState$default$1

        public S setState$default$1()
      • setState$default$2

        public D setState$default$2()
      • setState$default$3

        public scala.concurrent.duration.FiniteDuration setState$default$3()
      • setState$default$4

        public scala.Option<FSM.Reason> setState$default$4()
      • setTimer$default$4

        public boolean setTimer$default$4()
      • isTimerActive

        public boolean isTimerActive​(java.lang.String name)
        Parameters:
        name - (undocumented)
        Returns:
        (undocumented)