Package org.apache.pekko.stream
Class InvalidPartnerActorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.apache.pekko.stream.InvalidPartnerActorException
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
public final class InvalidPartnerActorException
extends IllegalStateException
implements scala.Product, 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:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidPartnerActorException(ActorRef expectedRef, ActorRef gotRef, String msg) -
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidPartnerActorExceptionbooleanbooleangotRef()inthashCode()msg()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>static final StringtoString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
InvalidPartnerActorException
-
-
Method Details
-
toString
-
apply
-
unapply
public static scala.Option<scala.Tuple3<ActorRef,ActorRef, unapplyString>> (InvalidPartnerActorException x$0) -
expectedRef
-
gotRef
-
msg
-
copy
-
copy$default$1
-
copy$default$2
-
copy$default$3
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
equals
-