c

akka.typed

StubbedActorContext

class StubbedActorContext[T] extends ActorContext[T]

An ActorContext for synchronous execution of a Behavior that provides only stubs for the effects an Actor can perform and replaces created child Actors by a synchronous Inbox (see Inbox.sync).

See EffectfulActorContext for more advanced uses.

Source
ActorContext.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StubbedActorContext
  2. ActorContext
  3. AnyRef
  4. 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 StubbedActorContext(name: String, mailboxCapacity: Int, system: ActorSystem[Nothing])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from StubbedActorContext[T] to any2stringadd[StubbedActorContext[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (StubbedActorContext[T], B)
    Implicit
    This member is added by an implicit conversion from StubbedActorContext[T] to ArrowAssoc[StubbedActorContext[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def cancelReceiveTimeout(): Unit

    Cancel the sending of receive timeout notifications.

    Cancel the sending of receive timeout notifications.

    Definition Classes
    StubbedActorContextActorContext
  8. def child(name: String): Option[ActorRef[Nothing]]

    The named child Actor if it is alive.

    The named child Actor if it is alive.

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

    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
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def ensuring(cond: (StubbedActorContext[T]) ⇒ Boolean, msg: ⇒ Any): StubbedActorContext[T]
    Implicit
    This member is added by an implicit conversion from StubbedActorContext[T] to Ensuring[StubbedActorContext[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (StubbedActorContext[T]) ⇒ Boolean): StubbedActorContext[T]
    Implicit
    This member is added by an implicit conversion from StubbedActorContext[T] to Ensuring[StubbedActorContext[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): StubbedActorContext[T]
    Implicit
    This member is added by an implicit conversion from StubbedActorContext[T] to Ensuring[StubbedActorContext[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): StubbedActorContext[T]
    Implicit
    This member is added by an implicit conversion from StubbedActorContext[T] to Ensuring[StubbedActorContext[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def executionContext: ExecutionContextExecutor

    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
  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from StubbedActorContext[T] to StringFormat[StubbedActorContext[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  21. def getInbox[U](child: ActorRef[U]): Inbox[U]

    Retrieve the named inbox.

    Retrieve the named inbox. The passed ActorRef must be one that was returned by one of the spawn methods earlier.

  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  23. val inbox: Inbox[T]
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. val mailboxCapacity: Int
    Definition Classes
    StubbedActorContextActorContext
  26. val name: String
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  30. def removeInbox(child: ActorRef[Nothing]): Unit

    Remove the given inbox from the list of children, for example after having simulated its termination.

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

    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
    StubbedActorContextActorContext
  32. val self: ActorRef[T]
    Definition Classes
    StubbedActorContextActorContext
  33. def setReceiveTimeout(d: FiniteDuration, msg: T): Unit

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

    Schedule the sending of a 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
    StubbedActorContextActorContext
  34. def spawn[U](behavior: Behavior[U], name: String, deployment: DeploymentConfig = EmptyDeploymentConfig): ActorRef[U]

    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
    StubbedActorContextActorContext
  35. def spawnAdapter[U](f: (U) ⇒ T): ActorRef[U]

    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
  36. def spawnAnonymous[U](behavior: Behavior[U], deployment: DeploymentConfig = EmptyDeploymentConfig): ActorRef[U]

    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
    StubbedActorContextActorContext
  37. def stop(child: ActorRef[Nothing]): Boolean

    Do not actually stop the child inbox, only simulate the liveness check.

    Do not actually stop the child inbox, only simulate the liveness check. Removal is asynchronous, explicit removeInbox is needed from outside afterwards.

    returns

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

    Definition Classes
    StubbedActorContextActorContext
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. val system: ActorSystem[Nothing]
    Definition Classes
    StubbedActorContextActorContext
  40. def toString(): String
    Definition Classes
    StubbedActorContext → AnyRef → Any
  41. def unwatch(other: actor.ActorRef): other.type
  42. def unwatch[U](other: ActorRef[U]): ActorRef[U]

    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
    StubbedActorContextActorContext
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def watch(other: actor.ActorRef): other.type
  47. def watch[U](other: ActorRef[U]): ActorRef[U]

    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
    StubbedActorContextActorContext
  48. def [B](y: B): (StubbedActorContext[T], B)
    Implicit
    This member is added by an implicit conversion from StubbedActorContext[T] to ArrowAssoc[StubbedActorContext[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from ActorContext[T]

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped