Class Effects$


  • public class Effects$
    extends java.lang.Object
    The behavior spawned a named child with the given behavior with no specific props
    • Field Detail

      • MODULE$

        public static final Effects$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Effects$

        public Effects$()
    • Method Detail

      • spawned

        public <T> Effect.Spawned<T> spawned​(Behavior<T> behavior,
                                             java.lang.String childName,
                                             ActorRef<T> ref)
        The behavior spawned a named child with the given behavior with no specific props
        Parameters:
        behavior - (undocumented)
        childName - (undocumented)
        ref - (undocumented)
        Returns:
        (undocumented)
      • spawned

        public <T> Effect.Spawned<T> spawned​(Behavior<T> behavior,
                                             java.lang.String childName,
                                             Props props)
        The behavior spawned a named child with the given behavior and specific props
        Parameters:
        behavior - (undocumented)
        childName - (undocumented)
        props - (undocumented)
        Returns:
        (undocumented)
      • spawned

        public <T> Effect.Spawned<T> spawned​(Behavior<T> behavior,
                                             java.lang.String childName,
                                             Props props,
                                             ActorRef<T> ref)
        The behavior spawned a named child with the given behavior and specific props
        Parameters:
        behavior - (undocumented)
        childName - (undocumented)
        props - (undocumented)
        ref - (undocumented)
        Returns:
        (undocumented)
      • spawnedAnonymous

        public <T> Effect.SpawnedAnonymous<T> spawnedAnonymous​(Behavior<T> behavior)
        The behavior spawned an anonymous child with the given behavior with no specific props
        Parameters:
        behavior - (undocumented)
        Returns:
        (undocumented)
      • spawnedAnonymous

        public <T> Effect.SpawnedAnonymous<T> spawnedAnonymous​(Behavior<T> behavior,
                                                               ActorRef<T> ref)
        The behavior spawned an anonymous child with the given behavior with no specific props
        Parameters:
        behavior - (undocumented)
        ref - (undocumented)
        Returns:
        (undocumented)
      • spawnedAnonymous

        public <T> Effect.SpawnedAnonymous<T> spawnedAnonymous​(Behavior<T> behavior,
                                                               Props props)
        The behavior spawned an anonymous child with the given behavior with specific props
        Parameters:
        behavior - (undocumented)
        props - (undocumented)
        Returns:
        (undocumented)
      • spawnedAnonymous

        public <T> Effect.SpawnedAnonymous<T> spawnedAnonymous​(Behavior<T> behavior,
                                                               Props props,
                                                               ActorRef<T> ref)
        The behavior spawned an anonymous child with the given behavior with specific props
        Parameters:
        behavior - (undocumented)
        props - (undocumented)
        ref - (undocumented)
        Returns:
        (undocumented)
      • stopped

        public Effect.Stopped stopped​(java.lang.String childName)
        The behavior stopped childName
        Parameters:
        childName - (undocumented)
        Returns:
        (undocumented)
      • watched

        public <T> Effect.Watched<T> watched​(ActorRef<T> other)
        The behavior started watching other, through context.watch(other)
        Parameters:
        other - (undocumented)
        Returns:
        (undocumented)
      • unwatched

        public <T> Effect.Unwatched<T> unwatched​(ActorRef<T> other)
        The behavior started watching other, through context.unwatch(other)
        Parameters:
        other - (undocumented)
        Returns:
        (undocumented)
      • receiveTimeoutSet

        public <T> Effect.ReceiveTimeoutSet<T> receiveTimeoutSet​(scala.concurrent.duration.FiniteDuration d,
                                                                 T message)
        The behavior set a new receive timeout, with message as timeout notification
        Parameters:
        d - (undocumented)
        message - (undocumented)
        Returns:
        (undocumented)
      • scheduled

        public <U> Effect.Scheduled<U> scheduled​(scala.concurrent.duration.FiniteDuration delay,
                                                 ActorRef<U> target,
                                                 U message)
        The behavior used context.schedule to schedule message to be sent to target after delay FIXME what about events scheduled through the scheduler?
        Parameters:
        delay - (undocumented)
        target - (undocumented)
        message - (undocumented)
        Returns:
        (undocumented)
      • noEffects

        public Effect.NoEffects noEffects()
        Used to represent an empty list of effects - in other words, the behavior didn't do anything observable
        Returns:
        (undocumented)