Packages

abstract class Inbox extends AnyRef

An Inbox is an actor-like object which is interrogated from the outside. It contains an actor whose reference can be passed to other actors as usual and it can watch other actors’ lifecycle.

Source
ActorDSL.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Inbox
  2. AnyRef
  3. 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 Inbox()

Abstract Value Members

  1. abstract def getRef(): ActorRef

    Obtain a reference to the internal actor, which can then for example be registered with the event stream or whatever else you may want to do with an ActorRef.

  2. abstract def receive(max: FiniteDuration): Any

    Receive the next message from this Inbox.

    Receive the next message from this Inbox. This call will return immediately if the internal actor previously received a message, or it will block for up to the specified duration to await reception of a message. If no message is received a java.util.concurrent.TimeoutException will be raised.

    Annotations
    @throws( ... )
  3. abstract def send(target: ActorRef, msg: AnyRef): Unit

    Have the internal actor act as the sender of the given message which will be sent to the given target.

    Have the internal actor act as the sender of the given message which will be sent to the given target. This means that should the target actor reply then those replies will be received by this Inbox.

  4. abstract def watch(target: ActorRef): Unit

    Have the internal actor watch the target actor.

    Have the internal actor watch the target actor. When the target actor terminates a Terminated message will be received.

Concrete Value Members

  1. def receive(max: Duration): Any

    Receive the next message from this Inbox.

    Receive the next message from this Inbox. This call will return immediately if the internal actor previously received a message, or it will block for up to the specified duration to await reception of a message. If no message is received a java.util.concurrent.TimeoutException will be raised.

    Annotations
    @throws( ... )