Class ServiceKey$

java.lang.Object
org.apache.pekko.actor.typed.receptionist.ServiceKey$

public class ServiceKey$ extends Object
  • Field Details

    • MODULE$

      public static final ServiceKey$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • ServiceKey$

      public ServiceKey$()
  • Method Details

    • apply

      public <T> ServiceKey<T> apply(String id, scala.reflect.ClassTag<T> classTag)
      Scala API: Creates a service key. The given ID should uniquely define a service with a given protocol.
    • create

      public <T> ServiceKey<T> create(Class<T> clazz, String id)
      Java API: Creates a service key. The given ID should uniquely define a service with a given protocol.