Packages

  • package root
    Definition Classes
    root
  • package akka
    Definition Classes
    root
  • package typed
    Definition Classes
    akka
  • object AskPattern

    The ask-pattern implements the initiator side of a request–reply protocol.

    The ask-pattern implements the initiator side of a request–reply protocol. The party that asks may be within or without an Actor, since the implementation will fabricate a (hidden) ActorRef that is bound to a scala.concurrent.Promise. This ActorRef will need to be injected in the message that is sent to the target Actor in order to function as a reply-to address, therefore the argument to the ask / ? operator is not the message itself but a function that given the reply-to address will create the message.

    case class Request(msg: String, replyTo: ActorRef[Reply])
    case class Reply(msg: String)
    
    implicit val timeout = Timeout(3.seconds)
    val target: ActorRef[Request] = ...
    val f: Future[Reply] = target ? (Request("hello", _))
    Definition Classes
    typed
  • Askable

implicit final class Askable[T] extends AnyVal

Source
Ask.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Askable
  2. AnyVal
  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 Askable(ref: ActorRef[T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Askable[T] to any2stringadd[Askable[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Askable[T], B)
    Implicit
    This member is added by an implicit conversion from Askable[T] to ArrowAssoc[Askable[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. def ?[U](f: (ActorRef[U]) ⇒ T)(implicit timeout: Timeout, scheduler: Scheduler): Future[U]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def ensuring(cond: (Askable[T]) ⇒ Boolean, msg: ⇒ Any): Askable[T]
    Implicit
    This member is added by an implicit conversion from Askable[T] to Ensuring[Askable[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (Askable[T]) ⇒ Boolean): Askable[T]
    Implicit
    This member is added by an implicit conversion from Askable[T] to Ensuring[Askable[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): Askable[T]
    Implicit
    This member is added by an implicit conversion from Askable[T] to Ensuring[Askable[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): Askable[T]
    Implicit
    This member is added by an implicit conversion from Askable[T] to Ensuring[Askable[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Askable[T] to StringFormat[Askable[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  13. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val ref: ActorRef[T]
  16. def toString(): String
    Definition Classes
    Any
  17. def [B](y: B): (Askable[T], B)
    Implicit
    This member is added by an implicit conversion from Askable[T] to ArrowAssoc[Askable[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyVal

Inherited from Any

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

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

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

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

Ungrouped