Package akka.actor.typed.internal
Interface ActorRefImpl<T>
-
- All Superinterfaces:
ActorRef<T>
,java.lang.Comparable<ActorRef<?>>
,RecipientRef<T>
,java.io.Serializable
public interface ActorRefImpl<T> extends ActorRef<T>
Every ActorRef is also an ActorRefImpl, but these two methods shall be completely hidden from client code. There is an implicit converter available in the package object, enablingref.toImpl
(orref.toImplN
forActorRef[Nothing]
—Scala refuses to inferNothing
as a type parameter).
-
-
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$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
compareTo(ActorRef<?> other)
Comparison takes path and the unique id of the actor cell into account.boolean
equals(java.lang.Object that)
Equals takes path and the unique id of the actor cell into account.int
hashCode()
boolean
isLocal()
<U extends T>
ActorRef<U>narrow()
Narrow the type of thisActorRef
, which is always a safe operation.void
sendSystem(SystemMessage signal)
java.lang.String
toString()
<U> ActorRef<U>
unsafeUpcast()
Unsafe utility method for widening the type accepted by this ActorRef; provided to avoid having to useasInstanceOf
on the full reference type, which would unfortunately also work on non-ActorRefs.-
Methods inherited from interface akka.actor.typed.ActorRef
path, tell, writeReplace
-
-
-
-
Method Detail
-
compareTo
int compareTo(ActorRef<?> other)
Comparison takes path and the unique id of the actor cell into account.- Specified by:
compareTo
in interfacejava.lang.Comparable<T>
-
equals
boolean equals(java.lang.Object that)
Equals takes path and the unique id of the actor cell into account.- Overrides:
equals
in classjava.lang.Object
-
hashCode
int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
isLocal
boolean isLocal()
-
narrow
<U extends T> ActorRef<U> narrow()
Description copied from interface:ActorRef
Narrow the type of thisActorRef
, which is always a safe operation.
-
sendSystem
void sendSystem(SystemMessage signal)
-
toString
java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
unsafeUpcast
<U> ActorRef<U> unsafeUpcast()
Description copied from interface:ActorRef
Unsafe utility method for widening the type accepted by this ActorRef; provided to avoid having to useasInstanceOf
on the full reference type, which would unfortunately also work on non-ActorRefs. Use it with caution,it may cause aClassCastException
when you send a message to the widened {@link ActorRef[U}].- Specified by:
unsafeUpcast
in interfaceActorRef<T>
-
-