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.Object
Register
message. Associate the givenActorRef
with the givenServiceKey
by 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.Registered
message 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.Command
apply(ServiceKey<T> key, ActorRef<T> service)
Create a Register without Ack that the service was registered<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
-
-
-
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
-
-