Packages

object Receptionist

A Receptionist is an entry point into an Actor hierarchy where select Actors publish their identity together with the protocols that they implement. Other Actors need only know the Receptionist’s identity in order to be able to use the services of the registered Actors.

Source
Receptionist.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Receptionist
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AbstractServiceKey extends AnyRef

    Internal representation of Receptionist.ServiceKey which is needed in order to use a TypedMultiMap (using keys with a type parameter does not work in Scala 2.x).

  2. sealed trait Command extends AnyRef

    The set of commands accepted by a Receptionist.

  3. final case class Find [T](key: ServiceKey[T])(replyTo: ActorRef[Listing[T]]) extends Command with Product with Serializable

    Query the Receptionist for a list of all Actors implementing the given protocol.

  4. final case class Listing [T](key: ServiceKey[T], addresses: Set[ActorRef[T]]) extends Product with Serializable

    Current listing of all Actors that implement the protocol given by the ServiceKey.

  5. final case class Register [T](key: ServiceKey[T], address: ActorRef[T])(replyTo: ActorRef[Registered[T]]) extends Command with Product with Serializable

    Associate the given akka.typed.ActorRef with the given ServiceKey.

    Associate the given akka.typed.ActorRef with the given ServiceKey. Multiple registrations can be made for the same key. Unregistration is implied by the end of the referenced Actor’s lifecycle.

  6. final case class Registered [T](key: ServiceKey[T], address: ActorRef[T]) extends Product with Serializable

    Confirmation that the given akka.typed.ActorRef has been associated with the ServiceKey.

  7. trait ServiceKey [T] extends AbstractServiceKey

    A service key is an object that implements this trait for a given protocol T, meaning that it signifies that the type T is the entry point into the protocol spoken by that service (think of it as the set of first messages that a client could send).

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val behavior: Behavior[Command]

    Initial behavior of a receptionist, used to create a new receptionist like in the following:

    Initial behavior of a receptionist, used to create a new receptionist like in the following:

    val receptionist: ActorRef[Receptionist.Command] = ctx.spawn(Props(Receptionist.behavior), "receptionist")
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped