Class Receptionist.Deregister$
java.lang.Object
org.apache.pekko.actor.typed.receptionist.Receptionist.Deregister$
- Enclosing class:
- Receptionist
Remove association between the given
pekko.actor.typed.ActorRef and the given ServiceKey.
Deregistration can be acknowledged with the Receptionist.Deregistered message if the deregister message is created with a
replyTo actor.
Note that getting the Receptionist.Deregistered confirmation does not mean all service key subscribers has seen the fact
that the actor has been deregistered yet (especially in a clustered context) so it will be possible that messages
sent to the actor in the role of service provider arrive even after getting the confirmation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Receptionist.Deregister$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 Deregister without Ack that the service was deregisteredapply(ServiceKey<T> key, ActorRef<T> service, ActorRef<Receptionist.Deregistered> replyTo) Create a Deregister with an actor that will get an ack that the service was unregistered
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Deregister$
public Deregister$()
-
-
Method Details
-
apply
Create a Deregister without Ack that the service was deregistered -
apply
public <T> Receptionist.Command apply(ServiceKey<T> key, ActorRef<T> service, ActorRef<Receptionist.Deregistered> replyTo) Create a Deregister with an actor that will get an ack that the service was unregistered
-