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,
                          <any> 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,
                                                                                            <any> 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,
                                                                                            <any> 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,
                                                                                            <any> 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,
                                                                                            <any> 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

        public void setTimer​(java.lang.String name,
                             java.lang.Object msg,
                             scala.concurrent.duration.FiniteDuration timeout,
                             boolean repeat)
        Deprecated.
        Use startTimerWithFixedDelay or startTimerAtFixedRate instead. This has the same semantics as startTimerAtFixedRate, but startTimerWithFixedDelay is often preferred. Since 2.6.0.
        Parameters:
        name - (undocumented)
        msg - (undocumented)
        timeout - (undocumented)
        repeat - (undocumented)
      • setTimer$default$4

        public boolean setTimer$default$4()
      • isTimerActive

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