Package akka.actor.typed
Class ActorRefResolver
- java.lang.Object
-
- akka.actor.typed.ActorRefResolver
-
- All Implemented Interfaces:
Extension
public abstract class ActorRefResolver extends java.lang.Object implements Extension
Serialization and deserialization ofActorRef
.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 Constructor Description ActorRefResolver()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static T
apply(ActorSystem<?> system)
static ActorRefResolver
createExtension(ActorSystem<?> system)
static boolean
equals(java.lang.Object other)
static ActorRefResolver
get(ActorSystem<?> system)
static int
hashCode()
static ExtensionId<T>
id()
abstract <T> ActorRef<T>
resolveActorRef(java.lang.String serializedActorRef)
Deserialize anActorRef
in thetoSerializationFormat(akka.actor.typed.ActorRef<T>)
.abstract <T> java.lang.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’s address includes host and port information.
-
-
-
Method Detail
-
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(java.lang.Object other)
-
id
public static ExtensionId<T> id()
-
toSerializationFormat
public abstract <T> java.lang.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’s address includes host and port information. This representation should be used as serialized representation.
-
resolveActorRef
public abstract <T> ActorRef<T> resolveActorRef(java.lang.String serializedActorRef)
Deserialize anActorRef
in thetoSerializationFormat(akka.actor.typed.ActorRef<T>)
.
-
-