Class Receptionist.Register$
java.lang.Object
org.apache.pekko.actor.typed.receptionist.Receptionist.Register$
- Enclosing class:
- Receptionist
Register message. Associate the given pekko.actor.typed.ActorRef with the given ServiceKey
by sending this command to the Receptionist.ref.
Multiple registrations can be made for the same key. De-registration is implied by the end of the referenced Actor’s lifecycle, but it can also be explicitly deregistered before termination.
Registration will be acknowledged with the Receptionist.Registered message to the given replyTo actor
if there is one.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Receptionist.Register$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ServiceKey<T> key, ActorRef<T> service) Create a Register without Ack that the service was registeredapply(ServiceKey<T> key, ActorRef<T> service, ActorRef<Receptionist.Registered> replyTo) Create a Register with an actor that will get an ack that the service was registered
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Register$
public Register$()
-
-
Method Details
-
apply
Create a Register without Ack that the service was registered -
apply
public <T> Receptionist.Command apply(ServiceKey<T> key, ActorRef<T> service, ActorRef<Receptionist.Registered> replyTo) Create a Register with an actor that will get an ack that the service was registered
-