Class ActorRefAdapter<T>
- java.lang.Object
-
- akka.actor.typed.internal.adapter.ActorRefAdapter<T>
-
- All Implemented Interfaces:
ActorRef<T>
,ActorRefImpl<T>
,InternalRecipientRef<T>
,RecipientRef<T>
,java.io.Serializable
,java.lang.Comparable<ActorRef<?>>
public class ActorRefAdapter<T> extends java.lang.Object implements ActorRef<T>, ActorRefImpl<T>, InternalRecipientRef<T>
INTERNAL API- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.actor.typed.ActorRef
ActorRef.ActorRefOps<T>, ActorRef.ActorRefOps$
-
Nested classes/interfaces inherited from interface akka.actor.typed.RecipientRef
RecipientRef.RecipientRefOps<T>, RecipientRef.RecipientRefOps$
-
-
Constructor Summary
Constructors Constructor Description ActorRefAdapter(InternalActorRef classicRef)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> ActorRef<T>
apply(ActorRef ref)
InternalActorRef
classicRef()
boolean
isLocal()
boolean
isTerminated()
ActorPath
path()
The hierarchical path name of the referenced Actor.ActorRefProvider
provider()
Get a reference to the actor ref provider which created this ref.void
sendSystem(SystemMessage signal)
static void
sendSystemMessage(InternalActorRef classicRef, SystemMessage signal)
void
tell(T msg)
Send a message to the Actor referenced by this ActorRef using *at-most-once* messaging semantics.static <U> InternalActorRef
toClassic(ActorRef<U> ref)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.typed.ActorRef
writeReplace
-
Methods inherited from interface akka.actor.typed.internal.ActorRefImpl
compareTo, equals, hashCode, narrow, toString, unsafeUpcast
-
-
-
-
Constructor Detail
-
ActorRefAdapter
public ActorRefAdapter(InternalActorRef classicRef)
-
-
Method Detail
-
toClassic
public static <U> InternalActorRef toClassic(ActorRef<U> ref)
-
sendSystemMessage
public static void sendSystemMessage(InternalActorRef classicRef, SystemMessage signal)
-
classicRef
public InternalActorRef classicRef()
-
path
public ActorPath path()
Description copied from interface:ActorRef
The hierarchical path name of the referenced Actor. The lifecycle of the ActorRef is fully contained within the lifecycle of theActorPath
and more than one Actor instance can exist with the same path at different points in time, but not concurrently.
-
tell
public void tell(T msg)
Description copied from interface:ActorRef
Send a message to the Actor referenced by this ActorRef using *at-most-once* messaging semantics.
-
isLocal
public boolean isLocal()
- Specified by:
isLocal
in interfaceActorRefImpl<T>
-
sendSystem
public void sendSystem(SystemMessage signal)
- Specified by:
sendSystem
in interfaceActorRefImpl<T>
-
provider
public ActorRefProvider provider()
Description copied from interface:InternalRecipientRef
Get a reference to the actor ref provider which created this ref.- Specified by:
provider
in interfaceInternalRecipientRef<T>
- Returns:
- (undocumented)
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated
in interfaceInternalRecipientRef<T>
- Returns:
true
if the actor is locally known to be terminated,false
if alive or uncertain.
-
-