Package akka.stream

Class InvalidPartnerActorException

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product, scala.Serializable

    public final class InvalidPartnerActorException
    extends java.lang.IllegalStateException
    implements scala.Product, scala.Serializable
    Stream refs establish a connection between a local and remote actor, representing the origin and remote sides of a stream. Each such actor refers to the other side as its "partner". We make sure that no other actor than the initial partner can send demand/messages to the other side accidentally.

    This exception is thrown when a message is received from a non-partner actor, which could mean a bug or some actively malicient behavior from the other side.

    This is not meant as a security feature, but rather as plain sanity-check.

    See Also:
    Serialized Form
    • Constructor Detail

      • InvalidPartnerActorException

        public InvalidPartnerActorException​(ActorRef expectedRef,
                                            ActorRef gotRef,
                                            java.lang.String msg)
    • Method Detail

      • toString

        public static final java.lang.String toString()
      • expectedRef

        public ActorRef expectedRef()
      • msg

        public java.lang.String msg()
      • copy$default$1

        public ActorRef copy$default$1()
      • copy$default$2

        public ActorRef copy$default$2()
      • copy$default$3

        public java.lang.String copy$default$3()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

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

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object