object Subscribe
Subscribe the given actor to service updates. When new instances are registered or unregistered to the given key the given subscriber will be sent a Listing with the new set of instances for that service.
The subscription will be acknowledged by sending out a first Listing. The subscription automatically ends with the termination of the subscriber.
- Source
- Receptionist.scala
- Alphabetic
- By Inheritance
- Subscribe
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply[T](key: ServiceKey[T], subscriber: ActorRef[Listing]): Command
Scala API: