Packages

object Effect

Source
Effect.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Effect
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class AskInitiated[Req, Res, T](target: RecipientRef[Req], responseTimeout: FiniteDuration, responseClass: Class[Res])(askMessage: Req, forwardResponse: (Try[Res]) => Unit, mapResponse: (Try[Res]) => T) extends Effect with Product with Serializable

    The behavior initiated an ask via its context.

    The behavior initiated an ask via its context. A response or timeout may be sent via this effect to the asking behavior: this effect enforces that at most one response or timeout is sent. Alternatively, one may, after obtaining the effect, test the response adaptation function (without sending a message to the asking behavior) arbitrarily many times via the 'adaptResponse and adaptTimeout methods.

    The 'replyToRef' is exposed so that the target inbox can expect the actual message sent to initiate the ask.

    Note that this requires the ask to be initiated via the ActorContext. The Future returning ask is not testable in the BehaviorTestKit.

  2. final case class MessageAdapter[A, T](messageClass: Class[A], adapt: (A) => T) extends Effect with Product with Serializable

    The behavior create a message adapter for the messages of type clazz

  3. sealed abstract class NoEffects extends Effect

    Used for NoEffects expectations by type

  4. sealed abstract class ReceiveTimeoutCancelled extends Effect
  5. final case class ReceiveTimeoutSet[T](d: FiniteDuration, message: T) extends Effect with Product with Serializable

    The behavior set a new receive timeout, with message as timeout notification

  6. final case class Scheduled[U](delay: FiniteDuration, target: typed.ActorRef[U], message: U) extends Effect with Product with Serializable

    The behavior used context.scheduleOnce to schedule message to be sent to target after delay FIXME what about events scheduled through the scheduler?

  7. final class Spawned[T] extends Effect with Product3[Behavior[T], String, typed.Props] with Serializable

    The behavior spawned a named child with the given behavior (and optionally specific props)

  8. final class SpawnedAnonymous[T] extends Effect with Product2[Behavior[T], typed.Props] with Serializable

    The behavior spawned an anonymous child with the given behavior (and optionally specific props)

  9. final case class Stopped(childName: String) extends Effect with Product with Serializable

    The behavior stopped childName

  10. final case class TimerCancelled(key: Any) extends Effect with Product with Serializable
  11. final case class TimerScheduled[U](key: Any, msg: U, delay: FiniteDuration, mode: TimerMode, overriding: Boolean)(send: () => Unit) extends Effect with Product with Serializable
  12. final case class Unwatched[T](other: typed.ActorRef[T]) extends Effect with Product with Serializable

    The behavior stopped watching other, through context.unwatch(other)

  13. final case class Watched[T](other: typed.ActorRef[T]) extends Effect with Product with Serializable

    The behavior started watching other, through context.watch(other)

  14. final case class WatchedWith[U, T](other: typed.ActorRef[U], message: T) extends Effect with Product with Serializable

    The behavior started watching other, through context.watchWith(other, message)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def timerScheduled: TimerScheduled
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. case object NoEffects extends NoEffects with Product with Serializable

    Used to represent an empty list of effects - in other words, the behavior didn't do anything observable

  21. case object ReceiveTimeoutCancelled extends ReceiveTimeoutCancelled with Product with Serializable
  22. object Spawned extends Serializable
  23. object SpawnedAnonymous extends Serializable
  24. object TimerScheduled extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped