Class ServiceKey<T>
java.lang.Object
org.apache.pekko.actor.typed.internal.receptionist.AbstractServiceKey
org.apache.pekko.actor.typed.receptionist.ServiceKey<T>
- Direct Known Subclasses:
DefaultServiceKey
public abstract class ServiceKey<T>
extends org.apache.pekko.actor.typed.internal.receptionist.AbstractServiceKey
A service key is an object that implements this trait for a given protocol
T, meaning that it signifies that the type T is the entry point into the
protocol spoken by that service (think of it as the set of first messages
that a client could send).
Not for user extension, see factories in companion object: create(java.lang.Class<T>, java.lang.String) and apply(java.lang.String, scala.reflect.ClassTag<T>)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassScala API: Provides a type safe pattern match for listings.classScala API: Provides a type safe pattern match for registration acks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ServiceKey<T>Scala API: Creates a service key.static <T> ServiceKey<T>Java API: Creates a service key.abstract Stringid()Listing()Accessor for nested Scala objectAccessor for nested Scala object
-
Constructor Details
-
ServiceKey
public ServiceKey()
-
-
Method Details
-
apply
Scala API: Creates a service key. The given ID should uniquely define a service with a given protocol. -
create
Java API: Creates a service key. The given ID should uniquely define a service with a given protocol. -
Listing
Accessor for nested Scala object- Returns:
- (undocumented)
-
Registered
Accessor for nested Scala object- Returns:
- (undocumented)
-
id
-
asServiceKey
-