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.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 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 InvalidPartnerActorException
apply(ActorRef expectedRef, ActorRef gotRef, java.lang.String msg)
boolean
canEqual(java.lang.Object x$1)
InvalidPartnerActorException
copy(ActorRef expectedRef, ActorRef gotRef, java.lang.String msg)
ActorRef
copy$default$1()
ActorRef
copy$default$2()
java.lang.String
copy$default$3()
boolean
equals(java.lang.Object x$1)
ActorRef
expectedRef()
ActorRef
gotRef()
int
hashCode()
java.lang.String
msg()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
static java.lang.String
toString()
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:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-