Packages

class Inbox extends actor.Inbox

Source
Inbox.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Inbox
  2. Inbox
  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 Inbox(system: ActorSystem)

Value Members

  1. def finalize(): Unit

    Overridden finalizer which will try to stop the actor once this Inbox is no longer referenced.

    Overridden finalizer which will try to stop the actor once this Inbox is no longer referenced.

    Definition Classes
    Inbox → AnyRef
  2. 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.

    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.

    Definition Classes
    InboxInbox
  3. def receive(timeout: FiniteDuration = defaultTimeout): Any

    Receive a single message from the internal receiver actor.

    Receive a single message from the internal receiver actor. The supplied timeout is used for cleanup purposes and its precision is subject to the resolution of the system’s scheduler (usually 100ms, but configurable).

    Warning: This method blocks the current thread until a message is received, thus it can introduce dead-locks (directly as well as indirectly by causing starvation of the thread pool). Do not use this method within an actor!

    Definition Classes
    InboxInbox
  4. 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.

    Definition Classes
    Inbox
    Annotations
    @throws( ... )
  5. val receiver: ActorRef
  6. def select[T](timeout: FiniteDuration = defaultTimeout)(predicate: PartialFunction[Any, T]): T

    Receive a single message for which the given partial function is defined and return the transformed result, using the internal receiver actor.

    Receive a single message for which the given partial function is defined and return the transformed result, using the internal receiver actor. The supplied timeout is used for cleanup purposes and its precision is subject to the resolution of the system’s scheduler (usually 100ms, but configurable).

    Warning: This method blocks the current thread until a message is received, thus it can introduce dead-locks (directly as well as indirectly by causing starvation of the thread pool). Do not use this method within an actor!

  7. 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.

    Definition Classes
    InboxInbox
  8. def watch(target: ActorRef): Unit

    Make the inbox’s actor watch the target actor such that reception of the Terminated message can then be awaited.

    Make the inbox’s actor watch the target actor such that reception of the Terminated message can then be awaited.

    Definition Classes
    InboxInbox