Class

akka.typed

EffectfulActorContext

Related Doc: package typed

Permalink

class EffectfulActorContext[T] extends StubbedActorContext[T]

An ActorContext for testing purposes that records the effects performed on it and otherwise stubs them out like a StubbedActorContext.

Source
Effects.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EffectfulActorContext
  2. StubbedActorContext
  3. ActorContext
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EffectfulActorContext(_name: String, _props: Props[T], _system: ActorSystem[Nothing])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from EffectfulActorContext[T] to any2stringadd[EffectfulActorContext[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (EffectfulActorContext[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from EffectfulActorContext[T] to ArrowAssoc[EffectfulActorContext[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def actorOf(props: actor.Props, name: String): actor.ActorRef

    Permalink

    Create an untyped child Actor from the given akka.actor.Props and with the given name.

    Create an untyped child Actor from the given akka.actor.Props and with the given name.

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  7. def actorOf(props: actor.Props): actor.ActorRef

    Permalink

    Create an untyped child Actor from the given akka.actor.Props under a randomly chosen name.

    Create an untyped child Actor from the given akka.actor.Props under a randomly chosen name. It is good practice to name Actors wherever practical.

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def child(name: String): Option[ActorRef[Nothing]]

    Permalink

    The named child Actor if it is alive.

    The named child Actor if it is alive.

    Definition Classes
    StubbedActorContextActorContext
  10. def children: Iterable[ActorRef[Nothing]]

    Permalink

    The list of child Actors created by this Actor during its lifetime that are still alive, in no particular order.

    The list of child Actors created by this Actor during its lifetime that are still alive, in no particular order.

    Definition Classes
    StubbedActorContextActorContext
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def currentBehavior: Behavior[T]

    Permalink
  13. def ensuring(cond: (EffectfulActorContext[T]) ⇒ Boolean, msg: ⇒ Any): EffectfulActorContext[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from EffectfulActorContext[T] to Ensuring[EffectfulActorContext[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (EffectfulActorContext[T]) ⇒ Boolean): EffectfulActorContext[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from EffectfulActorContext[T] to Ensuring[EffectfulActorContext[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): EffectfulActorContext[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from EffectfulActorContext[T] to Ensuring[EffectfulActorContext[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): EffectfulActorContext[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from EffectfulActorContext[T] to Ensuring[EffectfulActorContext[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. implicit def executionContext: ExecutionContextExecutor

    Permalink

    This Actor’s execution context.

    This Actor’s execution context. It can be used to run asynchronous tasks like scala.concurrent.Future combinators.

    Definition Classes
    StubbedActorContextActorContext
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from EffectfulActorContext[T] to StringFormat[EffectfulActorContext[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. def getAllEffects(): Seq[Effect]

    Permalink
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def getEffect(): Effect

    Permalink
  25. def getInbox[U](name: String): SyncInbox[U]

    Permalink
    Definition Classes
    StubbedActorContext
  26. def hasEffects: Boolean

    Permalink
  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. val inbox: SyncInbox[T]

    Permalink
    Definition Classes
    StubbedActorContext
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. val name: String

    Permalink
    Definition Classes
    StubbedActorContext
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. val props: Props[T]

    Permalink

    The Props from which this Actor was created.

    The Props from which this Actor was created.

    Definition Classes
    StubbedActorContextActorContext
  35. def removeInbox(name: String): Unit

    Permalink
    Definition Classes
    StubbedActorContext
  36. def run(msg: T): Unit

    Permalink
  37. def schedule[U](delay: FiniteDuration, target: ActorRef[U], msg: U): Cancellable

    Permalink

    Schedule the sending of the given message to the given target Actor after the given time period has elapsed.

    Schedule the sending of the given message to the given target Actor after the given time period has elapsed. The scheduled action can be cancelled by invoking akka.actor.Cancellable cancel on the returned handle.

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  38. val self: ActorRef[T]

    Permalink

    The identity of this Actor, bound to the lifecycle of this Actor instance.

    The identity of this Actor, bound to the lifecycle of this Actor instance. An Actor with the same name that lives before or after this instance will have a different ActorRef.

    Definition Classes
    StubbedActorContextActorContext
  39. def setReceiveTimeout(d: Duration): Unit

    Permalink

    Schedule the sending of a ReceiveTimeout notification in case no other message is received during the given period of time.

    Schedule the sending of a ReceiveTimeout notification in case no other message is received during the given period of time. The timeout starts anew with each received message. Provide Duration.Undefined to switch off this mechanism.

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  40. def signal(signal: Signal): Unit

    Permalink
  41. def spawn[U](props: Props[U], name: String): ActorRef[U]

    Permalink

    Create a child Actor from the given Props and with the given name.

    Create a child Actor from the given Props and with the given name.

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  42. def spawnAdapter[U](f: (U) ⇒ T): ActorRef[U]

    Permalink

    Create a child actor that will wrap messages such that other Actor’s protocols can be ingested by this Actor.

    Create a child actor that will wrap messages such that other Actor’s protocols can be ingested by this Actor. You are strongly advised to cache these ActorRefs or to stop them when no longer needed.

    Definition Classes
    StubbedActorContextActorContext
  43. def spawnAnonymous[U](props: Props[U]): ActorRef[U]

    Permalink

    Create a child Actor from the given Props under a randomly chosen name.

    Create a child Actor from the given Props under a randomly chosen name. It is good practice to name Actors wherever practical.

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  44. def stop(child: ActorRef[Nothing]): Boolean

    Permalink

    Force the child Actor under the given name to terminate after it finishes processing its current message.

    Force the child Actor under the given name to terminate after it finishes processing its current message. Nothing happens if the ActorRef does not refer to a current child actor.

    returns

    whether the passed-in ActorRef points to a current child Actor

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  46. implicit val system: ActorSystem[Nothing]

    Permalink

    The ActorSystem to which this Actor belongs.

    The ActorSystem to which this Actor belongs.

    Definition Classes
    StubbedActorContextActorContext
  47. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  48. def unwatch(other: actor.ActorRef): other.type

    Permalink

    Revoke the registration established by watch.

    Revoke the registration established by watch. A Terminated notification will not subsequently be received for the referenced Actor.

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  49. def unwatch[U](other: ActorRef[U]): ActorRef[U]

    Permalink

    Revoke the registration established by watch.

    Revoke the registration established by watch. A Terminated notification will not subsequently be received for the referenced Actor.

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  50. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. def watch(other: actor.ActorRef): other.type

    Permalink

    Register for Terminated notification once the Actor identified by the given akka.actor.ActorRef terminates.

    Register for Terminated notification once the Actor identified by the given akka.actor.ActorRef terminates. This notification is also generated when the ActorSystem to which the referenced Actor belongs is declared as failed (e.g. in reaction to being unreachable).

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  54. def watch[U](other: ActorRef[U]): ActorRef[U]

    Permalink

    Register for Terminated notification once the Actor identified by the given ActorRef terminates.

    Register for Terminated notification once the Actor identified by the given ActorRef terminates. This notification is also generated when the ActorSystem to which the referenced Actor belongs is declared as failed (e.g. in reaction to being unreachable).

    Definition Classes
    EffectfulActorContextStubbedActorContextActorContext
  55. def [B](y: B): (EffectfulActorContext[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from EffectfulActorContext[T] to ArrowAssoc[EffectfulActorContext[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from StubbedActorContext[T]

Inherited from ActorContext[T]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from EffectfulActorContext[T] to any2stringadd[EffectfulActorContext[T]]

Inherited by implicit conversion StringFormat from EffectfulActorContext[T] to StringFormat[EffectfulActorContext[T]]

Inherited by implicit conversion Ensuring from EffectfulActorContext[T] to Ensuring[EffectfulActorContext[T]]

Inherited by implicit conversion ArrowAssoc from EffectfulActorContext[T] to ArrowAssoc[EffectfulActorContext[T]]

Ungrouped