Class ActorRefResolver

java.lang.Object
org.apache.pekko.actor.typed.ActorRefResolver
All Implemented Interfaces:
Extension

public abstract class ActorRefResolver extends Object implements Extension
Serialization and deserialization of ActorRef.

This class is not intended for user extension other than for test purposes (e.g. stub implementation). More methods may be added in the future and that may break such implementations.

  • Constructor Details

    • ActorRefResolver

      public ActorRefResolver()
  • Method Details

    • get

      public static ActorRefResolver get(ActorSystem<?> system)
    • createExtension

      public static ActorRefResolver createExtension(ActorSystem<?> system)
    • apply

      public static final T apply(ActorSystem<?> system)
    • hashCode

      public static final int hashCode()
    • equals

      public static final boolean equals(Object other)
    • id

      public static ExtensionId<T> id()
    • toSerializationFormat

      public abstract <T> String toSerializationFormat(ActorRef<T> ref)
      Generate full String representation including the uid for the actor cell instance as URI fragment, replacing the Address in the RootActor Path with the local one unless this path&rsquo;s address includes host and port information. This representation should be used as serialized representation.
    • resolveActorRef

      public abstract <T> ActorRef<T> resolveActorRef(String serializedActorRef)