Package akka.actor.typed.receptionist
Class Receptionist.Subscribe$
- java.lang.Object
-
- akka.actor.typed.receptionist.Receptionist.Subscribe$
-
- Enclosing class:
- Receptionist
public static class Receptionist.Subscribe$ extends java.lang.Object
Subscribe
message. The given actor will subscribe to service updates when this command is sent to theReceptionist.ref
. When the set of instances registered for the given key changes the subscriber will be sent aReceptionist.Listing
with the new set of instances for that service.The subscription will be acknowledged by sending out a first
Receptionist.Listing
. The subscription automatically ends with the termination of the subscriber.
-
-
Field Summary
Fields Modifier and Type Field Description static Receptionist.Subscribe$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Subscribe$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Receptionist.Command
apply(ServiceKey<T> key, ActorRef<Receptionist.Listing> subscriber)
Scala API:
-
-
-
Field Detail
-
MODULE$
public static final Receptionist.Subscribe$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
apply
public <T> Receptionist.Command apply(ServiceKey<T> key, ActorRef<Receptionist.Listing> subscriber)
Scala API:
-
-