Package akka.stream
Class InvalidPartnerActorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- akka.stream.InvalidPartnerActorException
-
- All Implemented Interfaces:
java.io.Serializable,scala.Equals,scala.Product
public final class InvalidPartnerActorException extends java.lang.IllegalStateException implements scala.Product, java.io.SerializableStream 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 Summary
Constructors Constructor Description InvalidPartnerActorException(ActorRef expectedRef, ActorRef gotRef, java.lang.String msg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvalidPartnerActorExceptionapply(ActorRef expectedRef, ActorRef gotRef, java.lang.String msg)booleancanEqual(java.lang.Object x$1)InvalidPartnerActorExceptioncopy(ActorRef expectedRef, ActorRef gotRef, java.lang.String msg)ActorRefcopy$default$1()ActorRefcopy$default$2()java.lang.Stringcopy$default$3()booleanequals(java.lang.Object x$1)ActorRefexpectedRef()ActorRefgotRef()inthashCode()java.lang.Stringmsg()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()static java.lang.StringtoString()static scala.Option<scala.Tuple3<ActorRef,ActorRef,java.lang.String>>unapply(InvalidPartnerActorException x$0)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
toString
public static final java.lang.String toString()
-
apply
public static InvalidPartnerActorException apply(ActorRef expectedRef, ActorRef gotRef, java.lang.String msg)
-
unapply
public static scala.Option<scala.Tuple3<ActorRef,ActorRef,java.lang.String>> unapply(InvalidPartnerActorException x$0)
-
expectedRef
public ActorRef expectedRef()
-
gotRef
public ActorRef gotRef()
-
msg
public java.lang.String msg()
-
copy
public InvalidPartnerActorException copy(ActorRef expectedRef, ActorRef gotRef, 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:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-