Package akka.actor.typed.receptionist
Class Receptionist.Register$
- java.lang.Object
-
- akka.actor.typed.receptionist.Receptionist.Register$
-
- Enclosing class:
- Receptionist
public static class Receptionist.Register$ extends java.lang.ObjectRegistermessage. Associate the givenActorRefwith the givenServiceKeyby sending this command to theReceptionist.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.Registeredmessage to the given replyTo actor if there is one.
-
-
Field Summary
Fields Modifier and Type Field Description static Receptionist.Register$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Register$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Receptionist.Commandapply(ServiceKey<T> key, ActorRef<T> service)Create a Register without Ack that the service was registered<T> Receptionist.Commandapply(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 Detail
-
MODULE$
public static final Receptionist.Register$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
apply
public <T> Receptionist.Command apply(ServiceKey<T> key, ActorRef<T> service)
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
-
-