Sends a one-way asynchronous message.
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
Comparison takes path and the unique id of the actor cell into account.
Comparison takes path and the unique id of the actor cell into account.
Equals takes path and the unique id of the actor cell into account.
Equals takes path and the unique id of the actor cell into account.
Forwards the message and passes the original sender actor as the sender.
Forwards the message and passes the original sender actor as the sender.
Works, no matter whether originally sent with tell/'!' or ask/'?'.
Obtain ActorRef by possibly traversing the actor tree or looking it up at some provider-specific location.
Obtain ActorRef by possibly traversing the actor tree or looking it up at some provider-specific location. This method shall return the end result, i.e. not only the next step in the look-up; this will typically involve recursive invocation. A path element of ".." signifies the parent, a trailing "" element must be disregarded. If the requested path does not exist, return Nobody.
Obtain parent of this ref; used by getChild for ".." paths.
Obtain parent of this ref; used by getChild for ".." paths.
Method for looking up a single child beneath this actor.
Method for looking up a single child beneath this actor. Override in order to inject “synthetic” actor paths like “/temp”. It is racy if called from the outside.
Returns the path for this actor (from this actor up to the root actor).
Returns the path for this actor (from this actor up to the root actor).
Get a reference to the actor ref provider which created this ref.
Get a reference to the actor ref provider which created this ref.
Directly inject messages into actor receive behavior.
Directly inject messages into actor receive behavior. Any exceptions thrown will be available to you, while still being able to use become/unbecome.
Directly inject messages into actor receive behavior.
Directly inject messages into actor receive behavior. Any exceptions thrown will be available to you, while still being able to use become/unbecome.
Resumes a suspended actor.
Resumes a suspended actor.
Starts the actor after initialization.
Starts the actor after initialization.
Shuts down the actor and its message queue
Shuts down the actor and its message queue
Suspends the actor so that it will not process messages until resumed.
Suspends the actor so that it will not process messages until resumed. The suspend request is processed asynchronously to the caller of this method as well as to normal message sends: the only ordering guarantee is that message sends done from the same thread after calling this method will not be processed until resumed.
Sends the specified message to the sender, i.e.
Sends the specified message to the sender, i.e. fire-and-forget semantics, including the sender reference if possible.
Pass akka.actor.ActorRef$.noSender or null
as sender if there is nobody to reply to
Retrieve reference to the underlying actor, where the static type matches the factory used inside the constructor.
Retrieve reference to the underlying actor, where the static type matches the factory used inside the constructor. Beware that this reference is discarded by the ActorRef upon restarting the actor (should this reference be linked to a supervisor). The old Actor may of course still be used in post-mortem assertions.
Deregisters this actor from being a death monitor of the provided ActorRef This means that this actor will not get a Terminated()-message when the provided actor is permanently terminated.
Deregisters this actor from being a death monitor of the provided ActorRef This means that this actor will not get a Terminated()-message when the provided actor is permanently terminated.
the same ActorRef that is provided to it, to allow for cleaner invocations
Registers this actor to be a death monitor of the provided ActorRef This means that this actor will get a Terminated()-message when the provided actor is permanently terminated.
Registers this actor to be a death monitor of the provided ActorRef This means that this actor will get a Terminated()-message when the provided actor is permanently terminated.
the same ActorRef that is provided to it, to allow for cleaner invocations
Sends a one-way asynchronous message.
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
(testActorRef: ScalaActorRef).!(message)(sender)
Comparison takes path and the unique id of the actor cell into account.
Comparison takes path and the unique id of the actor cell into account.
(testActorRef: ActorRef).compareTo(other)
Equals takes path and the unique id of the actor cell into account.
Equals takes path and the unique id of the actor cell into account.
(testActorRef: ActorRef).equals(that)
Forwards the message and passes the original sender actor as the sender.
Forwards the message and passes the original sender actor as the sender.
Works, no matter whether originally sent with tell/'!' or ask/'?'.
(testActorRef: ActorRef).forward(message)(context)
(testActorRef: ActorRef).hashCode()
Returns the path for this actor (from this actor up to the root actor).
Returns the path for this actor (from this actor up to the root actor).
(testActorRef: ActorRef).path
Sends the specified message to the sender, i.e.
Sends the specified message to the sender, i.e. fire-and-forget semantics, including the sender reference if possible.
Pass akka.actor.ActorRef$.noSender or null
as sender if there is nobody to reply to
(testActorRef: ActorRef).tell(msg, sender)
(testActorRef: ActorRef).toString()
Is the actor shut down? The contract is that if this method returns true, then it will never be false again.
Is the actor shut down? The contract is that if this method returns true, then it will never be false again. But you cannot rely on that it is alive if it returns false, since this by nature is a racy method.
(testActorRef: ActorRef).isTerminated
(Since version 2.2) Use context.watch(actor) and receive Terminated(actor)
Is the actor terminated? If this method returns true, it will never return false again, but if it returns false, you cannot be sure if it's alive still (race condition)
Is the actor terminated? If this method returns true, it will never return false again, but if it returns false, you cannot be sure if it's alive still (race condition)
(Since version 2.2) Use context.watch(actor) and receive Terminated(actor)
This special ActorRef is exclusively for use during unit testing in a single-threaded environment. Therefore, it overrides the dispatcher to CallingThreadDispatcher and sets the receiveTimeout to None. Otherwise, it acts just like a normal ActorRef. You may retrieve a reference to the underlying actor to test internal logic.
1.1