Package org.apache.pekko.actor.typed
Class ActorRefResolver
java.lang.Object
org.apache.pekko.actor.typed.ActorRefResolver
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Tapply(ActorSystem<?> system) static ActorRefResolvercreateExtension(ActorSystem<?> system) static final booleanstatic ActorRefResolverget(ActorSystem<?> system) static final inthashCode()static ExtensionId<T>id()abstract <T> ActorRef<T>resolveActorRef(String serializedActorRef) Deserialize anActorRefin thetoSerializationFormat(org.apache.pekko.actor.typed.ActorRef<T>).abstract <T> StringtoSerializationFormat(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’s address includes host and port information.
-
Constructor Details
-
ActorRefResolver
public ActorRefResolver()
-
-
Method Details
-
get
-
createExtension
-
apply
-
hashCode
public static final int hashCode() -
equals
-
id
-
toSerializationFormat
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’s address includes host and port information. This representation should be used as serialized representation. -
resolveActorRef
Deserialize anActorRefin thetoSerializationFormat(org.apache.pekko.actor.typed.ActorRef<T>).
-