Object/Class

akka.typed.patterns

Receptionist

Related Docs: class Receptionist | package patterns

Permalink

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
Content Hierarchy Learn more about scaladoc diagrams
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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

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

  7. trait ServiceKey[T] extends AbstractServiceKey

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val behavior: Behavior[Command]

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped