package receptionist
- Alphabetic
- Public
- Protected
Type Members
- abstract class Receptionist extends Extension
Register and discover actors that implement a service with a protocol defined by a ServiceKey.
Register and discover actors that implement a service with a protocol defined by a ServiceKey.
This class is not intended for user extension other than for test purposes (e.g. stub implementation). More methods may be added in the future and that may break such implementations.
- Annotations
- @DoNotInherit()
- final class ReceptionistSetup extends ExtensionSetup[Receptionist]
Can be used in pekko.actor.setup.ActorSystemSetup when starting the ActorSystem to replace the default implementation of the Receptionist extension.
Can be used in pekko.actor.setup.ActorSystemSetup when starting the ActorSystem to replace the default implementation of the Receptionist extension. Intended for tests that need to replace extension with stub/mock implementations.
- abstract class 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).
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).
Not for user extension, see factories in companion object: ServiceKey#create and ServiceKey#apply
- Annotations
- @DoNotInherit()
Value Members
- object Receptionist extends ExtensionId[Receptionist]
A Receptionist is an entry point into an Actor hierarchy where select Actors publish their identity together with the protocols that they implement.
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.
These are the messages (and the extension) for interacting with the receptionist. The receptionist is easiest accessed through the system: ActorSystem.receptionist
- object ReceptionistSetup
- object ServiceKey