Package org.apache.pekko.actor
Class DeadLetter
- java.lang.Object
-
- org.apache.pekko.actor.DeadLetter
-
- All Implemented Interfaces:
java.io.Serializable
,AllDeadLetters
,WrappedMessage
,scala.Equals
,scala.Product
public final class DeadLetter extends java.lang.Object implements AllDeadLetters, scala.Product, java.io.Serializable
When a message is sent to an Actor that is terminated before receiving the message, it will be sent as a DeadLetter to the ActorSystem's EventStream.When this message was sent without a sender
ActorRef
,sender
will besystem.deadLetters
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeadLetter(java.lang.Object message, ActorRef sender, ActorRef recipient)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeadLetter
apply(java.lang.Object message, ActorRef sender, ActorRef recipient)
boolean
canEqual(java.lang.Object x$1)
DeadLetter
copy(java.lang.Object message, ActorRef sender, ActorRef recipient)
java.lang.Object
copy$default$1()
ActorRef
copy$default$2()
ActorRef
copy$default$3()
boolean
equals(java.lang.Object x$1)
int
hashCode()
java.lang.Object
message()
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()
ActorRef
recipient()
ActorRef
sender()
java.lang.String
toString()
static scala.Option<scala.Tuple3<java.lang.Object,ActorRef,ActorRef>>
unapply(DeadLetter x$0)
-
-
-
Method Detail
-
apply
public static DeadLetter apply(java.lang.Object message, ActorRef sender, ActorRef recipient)
-
unapply
public static scala.Option<scala.Tuple3<java.lang.Object,ActorRef,ActorRef>> unapply(DeadLetter x$0)
-
message
public java.lang.Object message()
- Specified by:
message
in interfaceAllDeadLetters
- Specified by:
message
in interfaceWrappedMessage
-
sender
public ActorRef sender()
- Specified by:
sender
in interfaceAllDeadLetters
-
recipient
public ActorRef recipient()
- Specified by:
recipient
in interfaceAllDeadLetters
-
copy
public DeadLetter copy(java.lang.Object message, ActorRef sender, ActorRef recipient)
-
copy$default$1
public java.lang.Object copy$default$1()
-
copy$default$2
public ActorRef copy$default$2()
-
copy$default$3
public ActorRef 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
-
toString
public java.lang.String toString()
- Overrides:
toString
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
-
-