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).
The set of commands accepted by a Receptionist.
Query the Receptionist for a list of all Actors implementing the given protocol.
Current listing of all Actors that implement the protocol given by the ServiceKey.
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.
Confirmation that the given akka.typed.ActorRef has been associated with the ServiceKey.
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).
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")
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.