Package akka.actor.typed.receptionist
Interface Receptionist.Registered
-
- All Known Implementing Classes:
ReceptionistMessages.Registered
- Enclosing class:
- Receptionist
public static interface Receptionist.Registered
Confirmation that the givenActorRef
has been associated with theServiceKey
.You can use
key.Registered
for type-safe pattern matching.Not for user extension
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServiceKey<?>
getKey()
Java API<T> ActorRef<T>
getServiceInstance(ServiceKey<T> key)
Java APIboolean
isForKey(ServiceKey<?> key)
ServiceKey<?>
key()
Scala API<T> ActorRef<T>
serviceInstance(ServiceKey<T> key)
Scala API
-
-
-
Method Detail
-
isForKey
boolean isForKey(ServiceKey<?> key)
-
key
ServiceKey<?> key()
Scala API
-
getKey
ServiceKey<?> getKey()
Java API
-
serviceInstance
<T> ActorRef<T> serviceInstance(ServiceKey<T> key)
Scala APIAlso, see
ServiceKey.Listing
for more convenient pattern matching
-
getServiceInstance
<T> ActorRef<T> getServiceInstance(ServiceKey<T> key)
Java API
-
-