Package akka.actor
Class DeadLetterActorRef
- java.lang.Object
-
- akka.actor.ActorRef
-
- akka.actor.InternalActorRef
-
- akka.actor.EmptyLocalActorRef
-
- akka.actor.DeadLetterActorRef
-
- All Implemented Interfaces:
ActorRefScope
,LocalRef
,MinimalActorRef
,ScalaActorRef
,java.io.Serializable
,java.lang.Comparable<ActorRef>
public class DeadLetterActorRef extends EmptyLocalActorRef
Internal implementation of the dead letter destination: will publish any received message to the eventStream, wrapped asDeadLetter
.INTERNAL API
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeadLetterActorRef.SerializedDeadLetterActorRef
-
Constructor Summary
Constructors Constructor Description DeadLetterActorRef(ActorRefProvider _provider, ActorPath _path, EventStream _eventStream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
$bang(java.lang.Object message, ActorRef sender)
Scala API: Sends a one-way asynchronous message.ActorRef
$bang$default$2(java.lang.Object message)
static DeadLetterActorRef.SerializedDeadLetterActorRef
serialized()
protected boolean
specialHandle(java.lang.Object msg, ActorRef sender)
protected java.lang.Object
writeReplace()
-
Methods inherited from class akka.actor.EmptyLocalActorRef
eventStream, isTerminated, path, provider, sendSystemMessage
-
Methods inherited from class akka.actor.InternalActorRef
getChild, getParent, isLocal, isTemporaryRef, restart, resume, start, stop, suspend
-
Methods inherited from class akka.actor.ActorRef
compareTo, equals, forward, hashCode, noSender, tell, toString
-
-
-
-
Constructor Detail
-
DeadLetterActorRef
public DeadLetterActorRef(ActorRefProvider _provider, ActorPath _path, EventStream _eventStream)
-
-
Method Detail
-
serialized
public static DeadLetterActorRef.SerializedDeadLetterActorRef serialized()
-
$bang
public void $bang(java.lang.Object message, ActorRef sender)
Description copied from class:ActorRef
Scala API: Sends a one-way asynchronous message. E.g. fire-and-forget semantics.If invoked from within an actor then the actor reference is implicitly passed on as the implicit 'sender' argument.
This actor 'sender' reference is then available in the receiving actor in the 'sender()' member variable, if invoked from within an Actor. If not then no sender is available.
actor ! message
- Specified by:
$bang
in interfaceMinimalActorRef
- Specified by:
$bang
in interfaceScalaActorRef
- Overrides:
$bang
in classEmptyLocalActorRef
-
specialHandle
protected boolean specialHandle(java.lang.Object msg, ActorRef sender)
- Overrides:
specialHandle
in classEmptyLocalActorRef
-
writeReplace
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
-
$bang$default$2
public ActorRef $bang$default$2(java.lang.Object message)
- Specified by:
$bang$default$2
in interfaceMinimalActorRef
- Specified by:
$bang$default$2
in interfaceScalaActorRef
- Overrides:
$bang$default$2
in classEmptyLocalActorRef
-
-