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.toImplNforActorRef[Nothing]—Scala refuses to inferNothingas 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 intcompareTo(ActorRef<?> other)Comparison takes path and the unique id of the actor cell into account.booleanequals(java.lang.Object that)Equals takes path and the unique id of the actor cell into account.inthashCode()booleanisLocal()<U extends T>
ActorRef<U>narrow()Narrow the type of thisActorRef, which is always a safe operation.voidsendSystem(SystemMessage signal)java.lang.StringtoString()<U> ActorRef<U>unsafeUpcast()Unsafe utility method for widening the type accepted by this ActorRef; provided to avoid having to useasInstanceOfon 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:
compareToin 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:
equalsin classjava.lang.Object
-
hashCode
int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isLocal
boolean isLocal()
-
narrow
<U extends T> ActorRef<U> narrow()
Description copied from interface:ActorRefNarrow the type of thisActorRef, which is always a safe operation.
-
sendSystem
void sendSystem(SystemMessage signal)
-
toString
java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
unsafeUpcast
<U> ActorRef<U> unsafeUpcast()
Description copied from interface:ActorRefUnsafe utility method for widening the type accepted by this ActorRef; provided to avoid having to useasInstanceOfon the full reference type, which would unfortunately also work on non-ActorRefs. Use it with caution,it may cause aClassCastExceptionwhen you send a message to the widened {@link ActorRef[U}].- Specified by:
unsafeUpcastin interfaceActorRef<T>
-
-