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, enabling ref.toImpl (or ref.toImplN for ActorRef[Nothing]—Scala refuses to infer Nothing as a type parameter).
    • Method Detail

      • compareTo

        int compareTo​(ActorRef<?> other)
        Comparison takes path and the unique id of the actor cell into account.
        Specified by:
        compareTo in interface java.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 class java.lang.Object
      • hashCode

        int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isLocal

        boolean isLocal()
      • narrow

        <U extends TActorRef<U> narrow()
        Description copied from interface: ActorRef
        Narrow the type of this ActorRef, which is always a safe operation.
        Specified by:
        narrow in interface ActorRef<T>
      • toString

        java.lang.String toString()
        Overrides:
        toString in class java.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 use asInstanceOf on the full reference type, which would unfortunately also work on non-ActorRefs. Use it with caution,it may cause a ClassCastException when you send a message to the widened {@link ActorRef[U}].
        Specified by:
        unsafeUpcast in interface ActorRef<T>