Package akka.actor
Class EmptyLocalActorRef
- java.lang.Object
-
- akka.actor.ActorRef
-
- akka.actor.InternalActorRef
-
- akka.actor.EmptyLocalActorRef
-
- All Implemented Interfaces:
ActorRefScope
,LocalRef
,MinimalActorRef
,ScalaActorRef
,java.io.Serializable
,java.lang.Comparable<ActorRef>
- Direct Known Subclasses:
DeadLetterActorRef
public class EmptyLocalActorRef extends InternalActorRef implements MinimalActorRef
This special dead letter reference has a name: it is that which is returned by a local look-up which is unsuccessful.INTERNAL API
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmptyLocalActorRef(ActorRefProvider provider, ActorPath path, EventStream eventStream)
-
Method Summary
All 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)
EventStream
eventStream()
boolean
isTerminated()
INTERNAL API: Returns “true” if the actor is locally known to be terminated, “false” if alive or uncertain.ActorPath
path()
Returns the path for this actor (from this actor up to the root actor).ActorRefProvider
provider()
Get a reference to the actor ref provider which created this ref.void
sendSystemMessage(SystemMessage message)
protected boolean
specialHandle(java.lang.Object msg, ActorRef sender)
-
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.actor.MinimalActorRef
getChild, getParent, restart, resume, start, stop, suspend, writeReplace
-
-
-
-
Constructor Detail
-
EmptyLocalActorRef
public EmptyLocalActorRef(ActorRefProvider provider, ActorPath path, EventStream eventStream)
-
-
Method Detail
-
$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
- Specified by:
$bang
in classActorRef
-
$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 classActorRef
-
eventStream
public EventStream eventStream()
-
isTerminated
public boolean isTerminated()
Description copied from class:InternalActorRef
INTERNAL API: Returns “true” if the actor is locally known to be terminated, “false” if alive or uncertain.- Specified by:
isTerminated
in interfaceMinimalActorRef
- Specified by:
isTerminated
in classInternalActorRef
-
path
public ActorPath path()
Description copied from class:ActorRef
Returns the path for this actor (from this actor up to the root actor).
-
provider
public ActorRefProvider provider()
Description copied from class:InternalActorRef
Get a reference to the actor ref provider which created this ref.- Specified by:
provider
in classInternalActorRef
-
sendSystemMessage
public void sendSystemMessage(SystemMessage message)
- Specified by:
sendSystemMessage
in interfaceMinimalActorRef
- Specified by:
sendSystemMessage
in classInternalActorRef
-
specialHandle
protected boolean specialHandle(java.lang.Object msg, ActorRef sender)
-
-